Skip to content

Default values shall not be automatically employed in requests #191

@germano-russo

Description

@germano-russo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions