Skip to content

Commit

Permalink
max length changed to 50 for body make and chassis make (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyrkelly21 authored Aug 2, 2023
1 parent ed20491 commit e5fb816
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils/validations/HgvValidations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const hgvValidation = commonSchema.keys({
roadFriendly: Joi.boolean().allow(null, ""),
drawbarCouplingFitted: Joi.boolean().allow(null, ""),
offRoad: Joi.boolean().optional().allow(null, ""),
make: Joi.string().max(30).allow(null, ""),
make: Joi.string().max(50).allow(null, ""),
model: Joi.string().max(30).allow(null, ""),
speedLimiterMrk: Joi.boolean().allow(null, ""),
tachoExemptMrk: Joi.boolean().allow(null, ""),
Expand Down
4 changes: 2 additions & 2 deletions src/utils/validations/PsvValidations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ export const psvValidation = commonSchema.keys({
.allow(null, "")
.allow(null, ""),
coifDate: Joi.date().format("YYYY-MM-DD").raw().optional().allow(null, ""),
bodyMake: Joi.string().max(20).allow(null, ""),
bodyMake: Joi.string().max(50).allow(null, ""),
bodyModel: Joi.string().max(20).allow(null, ""),
chassisMake: Joi.string().max(20).allow(null, ""),
chassisMake: Joi.string().max(50).allow(null, ""),
chassisModel: Joi.string().max(20).allow(null, ""),
modelLiteral: Joi.string().max(30).optional().allow(null, ""),
speedRestriction: Joi.number().min(0).max(99).optional().allow(null, ""),
Expand Down
2 changes: 1 addition & 1 deletion src/utils/validations/TrlValidations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const trlValidation = commonSchema.keys({
.allow(null, ""),
authIntoService: authIntoService,
letterOfAuth: letterOfAuth,
make: Joi.string().max(30).allow(null, ""),
make: Joi.string().max(50).allow(null, ""),
model: Joi.string().max(30).allow(null, ""),
grossEecWeight: Joi.number().min(0).max(99999).optional().allow(null),
axles: Joi.array().items(
Expand Down

0 comments on commit e5fb816

Please sign in to comment.