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
Add the keywords option to the Ajv options to add custom keywords, without having to call addKeyword.
keywords
addKeyword
What version of Ajv you are you using? 6.10.2
What problem do you want to solve? Add keywords object directly to the Ajv constructor, like formats.
new Ajv({ keywords: { constant: { validate: function (schema, data) { return true; } } } });
What do you think is the correct solution to problem? Copy the implementation of the formats option to add keywords.
formats
Will you be able to implement it? yes
The text was updated successfully, but these errors were encountered:
merged
Sorry, something went wrong.
No branches or pull requests
Add the
keywords
option to the Ajv options to add custom keywords, without having to calladdKeyword
.What version of Ajv you are you using?
6.10.2
What problem do you want to solve?
Add keywords object directly to the Ajv constructor, like formats.
What do you think is the correct solution to problem?
Copy the implementation of the
formats
option to add keywords.Will you be able to implement it?
yes
The text was updated successfully, but these errors were encountered: