Skip to content

parameters with default values #707

@orensolo

Description

@orensolo

Hi,

I am using kinopenapi version 0.110.0,
If the schema contains parameters with a default value, and those parameters are missing in the request, then kinopenapi adds the
default values to the request after the validation.

This is not the desired behavior (in some cases) when the validation takes place on the client side.
This is because of the following reasons:

  1. The payload is unnecessarily larger.
  2. The server may respond differently if the default value exists.

So, the already existing SkipSettingDefaults option should be used for query parameters as well.
I will create a pull request to handle this issue.

Thanks,
Oren

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions