1
0
Fork 0
mirror of synced 2024-09-30 00:57:16 +13:00

Merge pull request #4077 from mslourens/maxlength_validation

fix schema constraint mapping to validation rule
This commit is contained in:
Rory Powell 2022-01-18 08:53:12 +00:00 committed by GitHub
commit a2ab721dd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ export const createValidatorFromConstraints = (
const length = schemaConstraints.length.maximum
rules.push({
type: "string",
constraint: "length",
constraint: "maxLength",
value: length,
error: `Maximum length is ${length}`,
})