diff --git a/src/main/common/form/models/defence.ts b/src/main/common/form/models/defence.ts index 332154d34c2..c07321d624d 100644 --- a/src/main/common/form/models/defence.ts +++ b/src/main/common/form/models/defence.ts @@ -1,9 +1,8 @@ -import {IsDefined, IsNotEmpty, MaxLength} from 'class-validator'; +import {IsDefined, IsNotEmpty} from 'class-validator'; export class Defence { @IsDefined({message: 'ERRORS.DEFENCE_REQUIRED'}) @IsNotEmpty({message: 'ERRORS.DEFENCE_REQUIRED'}) - @MaxLength(800, {message: 'ERRORS.TEXT800_TOO_LONG'}) text?: string; constructor(text?: string) { diff --git a/src/main/modules/i18n/locales/cy.json b/src/main/modules/i18n/locales/cy.json index d84d2ba209a..2c5d6fdcc47 100644 --- a/src/main/modules/i18n/locales/cy.json +++ b/src/main/modules/i18n/locales/cy.json @@ -5185,7 +5185,6 @@ "ADDRESS_LINE_TOO_MANY_JO": "Ni ddylai bob llinell y cyfeiriad fod yn hirach na 35 o nodau", "TOWN_CITY_TOO_MANY": "Ni ddylai tref neu ddinas fod yn hirach na 50 o nodau", "TOWN_CITY_TOO_MANY_JO": "Ni ddylai tref neu ddinas fod yn hirach na 35 o nodau", - "TEXT800_TOO_LONG": "Rhaid i'r rheswm fod yn 800 o nodau neu'n llai", "THERE_IS_A_PROBLEM": "Mae yna broblem", "THERE_WAS_A_PROBLEM": "Roedd problem", "TRY_AGAIN": "Rhowch gynnig arall arni neu teipiwch y cyfeiriad.", diff --git a/src/main/modules/i18n/locales/en.json b/src/main/modules/i18n/locales/en.json index bac29e61e5f..4951e20cea0 100644 --- a/src/main/modules/i18n/locales/en.json +++ b/src/main/modules/i18n/locales/en.json @@ -5185,7 +5185,6 @@ "ADDRESS_LINE_TOO_MANY_JO": "Each address line must be no longer than 35 characters", "TOWN_CITY_TOO_MANY": "Town or City must no longer than 50 characters", "TOWN_CITY_TOO_MANY_JO": "Town or City must no longer than 35 characters", - "TEXT800_TOO_LONG": "Reason must be 800 characters or fewer", "THERE_IS_A_PROBLEM": "There is a problem", "THERE_WAS_A_PROBLEM": "There was a problem", "TRY_AGAIN": "Try again or enter the address manually.",