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
please,i need format: int 32 , bug ajv don't include
The text was updated successfully, but these errors were encountered:
Version 2.1.0 will include int32, see #22 and #25. Until then you can add:
const MIN_INT32 = -(2 ** 31) const MAX_INT32 = 2 ** 31 - 1 function validateInt32(value) { return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32 } ajv.addFormat("int32", {type: "number", validate: validateInt32})
Sorry, something went wrong.
I am wondering if it would work with 6.12.6... You can definitely require just the format definition out of it and add manually.
No branches or pull requests
please,i need format: int 32 , bug ajv don't include
The text was updated successfully, but these errors were encountered: