Merge pull request #4077 from mslourens/maxlength_validation
fix schema constraint mapping to validation rule
This commit is contained in:
commit
5fff5bcfec
|
@ -37,7 +37,7 @@ export const createValidatorFromConstraints = (
|
||||||
const length = schemaConstraints.length.maximum
|
const length = schemaConstraints.length.maximum
|
||||||
rules.push({
|
rules.push({
|
||||||
type: "string",
|
type: "string",
|
||||||
constraint: "length",
|
constraint: "maxLength",
|
||||||
value: length,
|
value: length,
|
||||||
error: `Maximum length is ${length}`,
|
error: `Maximum length is ${length}`,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue