We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What version of Ajv you are you using?
latest
What problem do you want to solve?
const schema = { type: 'object', properties: { name: { type: 'string', title: 'Name', minLength: 1, }, }, required: ['name'], }
` const valid = ajv.compile(schmea)({name:''});
// valid is true
// Can i get required error when name is ''?
`
What do you think is the correct solution to problem?
can we add some option to change the behavior?
Will you be able to implement it?
The text was updated successfully, but these errors were encountered:
Hi @nick121212, can you replicate this in Runkit (you can clone this https://runkit.com/esp/ajv-issue)?
I tried running this locally and it works as expected, i.e. valid is false for an empty string.
Sorry, something went wrong.
Closing as I have been unable to repro. Happy to reopen if you can provide a runkit link demonstrating the issue.
No branches or pull requests
What version of Ajv you are you using?
latest
What problem do you want to solve?
const schema = { type: 'object', properties: { name: { type: 'string', title: 'Name', minLength: 1, }, }, required: ['name'], }
`
const valid = ajv.compile(schmea)({name:''});
// valid is true
// Can i get required error when name is ''?
`
What do you think is the correct solution to problem?
can we add some option to change the behavior?
Will you be able to implement it?
The text was updated successfully, but these errors were encountered: