Fix: Query param deepObject return without assign on !required by voro015 · Pull Request #68 · oapi-codegen/runtime

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@voro015

Copy link

Contributor

@voro015 voro015 commented

May 7, 2025

Updated BindQueryParameter to return error if query param was not provided but was set as required
Updated UnmarshalDeepObject to skip value assign if query param was not provided and not required

Fixes #67

@voro015 voro015 requested a review from a team as a code owner

May 7, 2025 04:44

@artemvoroninepg

Copy link

@jamietanna sorry for a direct ping, it's been almost a year, may I ask for your review?

@mromaszewicz mromaszewicz added the bug

Something isn't working

label

Mar 18, 2026
Exercise the required and optional code paths for deepObject-style
query parameters to verify no unintended side effects from PR oapi-codegen#68.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@mromaszewicz

Copy link

Member

Thanks for doing this, and sorry about the long delays.

@mromaszewicz mromaszewicz merged commit fd63554 into oapi-codegen:main

Mar 18, 2026

23 checks passed

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

Reviewers

@mromaszewicz mromaszewicz mromaszewicz approved these changes

Assignees

No one assigned

Labels

bug

Something isn't working

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Query param with deepObject does not respect if param is required

3 participants

@voro015 @artemvoroninepg @mromaszewicz