From e5fb8160a602375604b3ad25fe66f7252f7b447f Mon Sep 17 00:00:00 2001 From: Emily R Kelly <101548427+emilyrkelly21@users.noreply.github.com> Date: Wed, 2 Aug 2023 13:35:15 +0100 Subject: [PATCH] max length changed to 50 for body make and chassis make (#331) --- src/utils/validations/HgvValidations.ts | 2 +- src/utils/validations/PsvValidations.ts | 4 ++-- src/utils/validations/TrlValidations.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/validations/HgvValidations.ts b/src/utils/validations/HgvValidations.ts index d00cc638..25a527c0 100644 --- a/src/utils/validations/HgvValidations.ts +++ b/src/utils/validations/HgvValidations.ts @@ -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, ""), diff --git a/src/utils/validations/PsvValidations.ts b/src/utils/validations/PsvValidations.ts index 1456e0e8..4d0406ef 100644 --- a/src/utils/validations/PsvValidations.ts +++ b/src/utils/validations/PsvValidations.ts @@ -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, ""), diff --git a/src/utils/validations/TrlValidations.ts b/src/utils/validations/TrlValidations.ts index d6dbb698..4bf9ebe8 100644 --- a/src/utils/validations/TrlValidations.ts +++ b/src/utils/validations/TrlValidations.ts @@ -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(