-
-
Notifications
You must be signed in to change notification settings - Fork 761
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 and Path Parameter Validation #48
Comments
Basic query parameter validation is now part of Connexion 0.9.1, I will add basic path parameter validation next. |
👍 |
Path and header parameters are now also validated in Connexion 0.9.2. |
👍 |
I get the following exception on all path parameters even though the swagger editor tells me, that my file is correct. But as far as I tested, I am able to use all the routes without any further exceptions. Do you know what the problem could be here?
|
@samuelvonstachelski can you paste your swagger.yaml here? |
It looks like your operation is not a map, but a list (this would not conform with Swagger spec). |
The yaml formatting gets lost if I paste it, here is the link to the file: |
Your Swagger YAML is wrong in line 65: https://dev.flarecast.eu/stash/projects/INFRA/repos/pipeline/browse/pipeline/swagger.yaml#65 The "parameters" key is on the same level as the HTTP verbs. |
Swagger specs 2.0 says this is ok: |
Oh, true, i.e. we have missing support in Connexion for that right now. |
Okay, no problem. I am going update our swagger file. This is anyway just a "shortcut"-feature, explicit description for each http verb may be better... |
This is now supported after #152 got merged. |
Only "body" parameters are validated right now, we need to validate other parameters ("path", "query") too.
The text was updated successfully, but these errors were encountered: