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
Optional query parameters generates are not respected - generated functions require providing all query parameters
https://github.com/Krzysztof-Cieslak/SwaggerProviderOptionalQuery
Using optional query parameters should generate functions using optional parameters, or options.
{ "swagger": "2.0", "info": { "title": "test", "version": "0.0" }, "security": [ { "api_key": [] }, { "seymour_oauth": [] } ], "consumes": [ "application/json", "application/x-www-form-urlencoded", "application/jwt" ], "produces": [ "application/json" ], "paths": { "/accounts/": { "get": { "summary": "List accounts", "parameters": [ { "name": "name", "in": "query", "required": false, "type": "string" }, { "name": "date", "in": "query", "required": false, "type": "string" } ], "responses": { "200": { "description": "Successful" } } } } } }
The text was updated successfully, but these errors were encountered:
Fix released in v0.8.0
Sorry, something went wrong.
Thanks a lot! 😍
sergey-tihon
No branches or pull requests
Description
Optional query parameters generates are not respected - generated functions require providing all query parameters
Repro steps
https://github.com/Krzysztof-Cieslak/SwaggerProviderOptionalQuery
Expected behavior
Using optional query parameters should generate functions using optional parameters, or options.
Schema
The text was updated successfully, but these errors were encountered: