FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: bind Date and Time query params as scalar values (#21) by mromaszewicz · Pull Request #93 · oapi-codegen/runtime · GitHub

fix: bind Date and Time query params as scalar values (#21) - #93

Merged
mromaszewicz merged 1 commit into
oapi-codegen:mainfrom
mromaszewicz:fix/issue-21
Feb 26, 2026
Merged

fix: bind Date and Time query params as scalar values (#21)#93
mromaszewicz merged 1 commit into
oapi-codegen:mainfrom
mromaszewicz:fix/issue-21

Conversation

Copy link
Copy Markdown
Member

BindQueryParameter treated all structs as key-value objects in the non-exploded form path, causing types.Date and time.Time to fail with "property/values need to be pairs". Scalar struct types that implement Binder or encoding.TextUnmarshaler are now bound directly via their interface methods instead of being routed to bindSplitPartsToDestinationStruct.

Also adds Binder implementation to types.Date so it self-identifies as a scalar binding target.

BindQueryParameter treated all structs as key-value objects in the
non-exploded form path, causing types.Date and time.Time to fail with
"property/values need to be pairs". Scalar struct types that implement
Binder or encoding.TextUnmarshaler are now bound directly via their
interface methods instead of being routed to bindSplitPartsToDestinationStruct.

Also adds Binder implementation to types.Date so it self-identifies as a
scalar binding target.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mromaszewicz requested a review from a team as a code owner February 24, 2026 06:29

jamietanna left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice!

mromaszewicz merged commit b76a24f into oapi-codegen:main Feb 26, 2026
14 checks passed
mromaszewicz deleted the fix/issue-21 branch February 26, 2026 14:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL