Fix maxLength check
This commit is contained in:
parent
52b623b5cd
commit
0171d86b28
@ -339,7 +339,7 @@ class JsonSchemaProxyHandler {
|
||||
return 'String length too short';
|
||||
}
|
||||
|
||||
const maxLength = schema.minLength;
|
||||
const maxLength = schema.maxLength;
|
||||
if (typeof maxLength === 'number' && value.length > maxLength) {
|
||||
return 'String length too long';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user