Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
voro015 opened this issue May 7, 2025 · 0 comments · May be fixed by #68
Open

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

voro015 opened this issue May 7, 2025 · 0 comments · May be fixed by #68

Comments

@voro015
Copy link

voro015 commented May 7, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant