Skip to content
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

query parameter "required" not being enforced #88

Open
ekreiser opened this issue Sep 14, 2017 · 0 comments
Open

query parameter "required" not being enforced #88

ekreiser opened this issue Sep 14, 2017 · 0 comments

Comments

@ekreiser
Copy link

swagger snippet
{
"in": "query",
"name": "since",
"description": "",
"required": true,
"type": "string"
}

in 1.0.6 this was enforced to mean that a "since" value needed to be passed in the query string to the endpoint.
--this would validate
http://domain/api/endpoint&since=blah
--this would fail validation
http://domain/api/endpoint
http://domain/api/endpoint&since=

in 1.0.10 this is only enforcing that a "since" argument name is present but is passing validation even when no value is passed along with the argument
--this would validate
http://domain/api/endpoint&since=
--this would fail validation
http://domain/api/endpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant