-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I have:
var WoofSchema = schemator.defineSchema('woof', {
text: {
type: 'string',
nullable: true,
minLength: 10,
maxLength: 300
}
});
I expect that if the text is null to pass the test, and if is type string to check minLength and maxLength and show errors. But setting nullable to true overwrites the other constraints.
For example:
{
text: "hello"
}
gives no erros.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels