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
Hi,
I'm trying to validate requests using request validation middleware. In one of my API, I'm using following rule for one of my query params in API.
{ "name" : "from_date", "in" : "query", "schema" : { "type" : "string", "format" : "date", "example" : "2017-09-24" } }
As per, this rule request should fail if passed value is not a valid date but it's not failing if I pass from_date=abc.
from_date=abc
If I update format to date-time and then if I pass from_date=abc then it's giving me error as expected.
date-time
Request should fail if format is date and I pass from_date=abc.
The text was updated successfully, but these errors were encountered:
Has there been any progress?
Sorry, something went wrong.
This problem may be fixed by this PR (ota42y/openapi_parser#130)
No branches or pull requests
Hi,
I'm trying to validate requests using request validation middleware. In one of my API, I'm using following rule for one of my query params in API.
As per, this rule request should fail if passed value is not a valid date but it's not failing if I pass
from_date=abc
.If I update format to
date-time
and then if I passfrom_date=abc
then it's giving me error as expected.Request should fail if format is date and I pass
from_date=abc
.The text was updated successfully, but these errors were encountered: