Skip to content

Query param with deepObject does not respect if param is required #67

Description

@voro015

What happened:

Parameter query in: query options with style: deepObject and explode: true always assigns value to receiver resulting in "optional" values to always present.
Same time if param is required: true, but not set in query BindQueryParameter not returning expected error

What you expected to happen:

  1. If query param was not provided and required: true - return same error as for other param styles
  2. If query param was not provided and not required - receiver value is not updated, no error returned

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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