fix schema constraint mapping to validation rule

This commit is contained in:
Maurits Lourens 2022-01-17 23:23:36 +01:00
parent 7335a6ab5e
commit 68986fba3a
1 changed files with 1 additions and 1 deletions

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}`,
})