MinLength is not checked for string properties with empty string. In the schema bellow if the field is empty its considered valid (unexpected) but if there is 1 character its considered invalid (expected)
{
type: 'object',
properties: {
limitedString: {
type: 'string',
title: 'I\'m a string with min/max length',
minLength:2
}
}
}
Hi
MinLength is not checked for string properties with empty string. In the schema bellow if the field is empty its considered valid (unexpected) but if there is 1 character its considered invalid (expected)
Thanks