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

Default values shall not be automatically employed in requests #191

Open
germano-russo opened this issue Sep 25, 2020 · 0 comments
Open

Comments

@germano-russo
Copy link

Hello, optional body parameters that have a default value indicated in the parameter schema are automatically inserted in the request. However, this is not the intended meaning of the Swagger default keyword, which aims to just document what value will be automatically employed by the server (non the client) if the parameter is not included in the request.

I would then suggest to remove lines 41-45 in the primitives/_model.py file, or to provide a flag to optionally activate the current behaviour (disabled by default).

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