Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Dormand authored and Scott Dormand committed Nov 19, 2024
1 parent 88cdc0c commit 3f0c269
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/sales-api-service/src/schema/authenticate.schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,17 @@ import { contactResponseSchema } from './contact.schema.js'
import { finalisedPermissionSchemaContent } from './permission.schema.js'

export const authenticateRenewalRequestParamsSchema = Joi.object({
referenceNumber: Joi.string()
.min(6)
.required()
.description('The permission reference number (supports partial)')
referenceNumber: Joi.string().min(6).required().description('The permission reference number (supports partial)')
}).label('authenticate-renewal-request-params')

export const authenticateRenewalRequestQuerySchema = Joi.object({
licenseeBirthDate: validation.contact
.createBirthDateValidator(Joi)
.description('The date of birth of the licensee'),
licenseeBirthDate: validation.contact.createBirthDateValidator(Joi).description('The date of birth of the licensee'),
licenseePostcode: Joi.alternatives().try(
validation.contact.createUKPostcodeValidator(Joi).description('The postcode of the licensee'),
validation.contact.createOverseasPostcodeValidator(Joi)
),
// AWAIT DATE VALIDATOR
licenceEndDate: validation.date
.createRealDateValidator(Joi)
.description('The end date of the licence')
licenceEndDate: validation.date.createRealDateValidator(Joi).description('The end date of the licence')
}).label('authenticate-renewal-request-query')

export const authenticateRenewalResponseSchema = Joi.object({
Expand Down

0 comments on commit 3f0c269

Please sign in to comment.