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
Describe the bug If I send a multipart form data (File + Body), the body validation failed due to a boolean in it.
To Reproduce Send a multipart form data with boolean in it. Add the validation middleware with a boolean required in the validatin schema.
Actual behavior Failed with "XXX must be boolean" while the value is "true" in the form data string.
Expected behavior This validation should not failed as coercevalues is set to true by default.
I saw different issue on this in the past, may be there was a regression somewhere? or in AJV?
thanks,
The text was updated successfully, but these errors were encountered:
by reading again the docs, it seems that coercevalue is not applied to body, is that correct?
If so, how should we handle this case?
Thanks,
Sorry, something went wrong.
Any tips to solve this case?
No branches or pull requests
Describe the bug
If I send a multipart form data (File + Body), the body validation failed due to a boolean in it.
To Reproduce
Send a multipart form data with boolean in it. Add the validation middleware with a boolean required in the validatin schema.
Actual behavior
Failed with "XXX must be boolean" while the value is "true" in the form data string.
Expected behavior
This validation should not failed as coercevalues is set to true by default.
I saw different issue on this in the past, may be there was a regression somewhere? or in AJV?
thanks,
The text was updated successfully, but these errors were encountered: