pyopenapi/pyswagger

Default values shall not be automatically employed in requests

germano-russo opened this issue · 0 comments

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).