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).
Hello, optional body parameters that have a
defaultvalue indicated in the parameter schema are automatically inserted in the request. However, this is not the intended meaning of the Swaggerdefaultkeyword, 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.pyfile, or to provide a flag to optionally activate the current behaviour (disabled by default).