-
-
Notifications
You must be signed in to change notification settings - Fork 870
New issue
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
When coerceTypes is true, custom format function was not executed. #349
Comments
At the moment, formats only apply to strings, not to any other data type. |
@epoberezkin Yes, I mostly finished it last weekend but need to figure out how to support type detection in the format-rule, when there is no type declaration. I'll push what I have tomorrow and may need to tag you for a tip if I can't figure it out. |
What version of Ajv are you using? Does the issue happen if you use the latest version?
Ajv options object (see https://github.com/epoberezkin/ajv#options):
JSON Schema (please make it as small as possible to reproduce the issue):
Data (please make it as small as posssible to reproduce the issue):
Your code (please use
options
,schema
anddata
as variables):Validation result, data AFTER validation, error messages:
What results did you expect?
valid and int32 format function was executed.
but int32 custom function was not executed.
Are you going to resolve the issue?
At this moment, I don't know how to resolve it.
The text was updated successfully, but these errors were encountered: