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

fix: strip style prefix for label/matrix primitive parameters (#99) by mromaszewicz · Pull Request #100 · oapi-codegen/runtime · GitHub

fix: strip style prefix for label/matrix primitive parameters (#99) - #100

Merged
mromaszewicz merged 1 commit into
oapi-codegen:mainfrom
mromaszewicz:fix/issue-99
Mar 12, 2026
Merged

fix: strip style prefix for label/matrix primitive parameters (#99)#100
mromaszewicz merged 1 commit into
oapi-codegen:mainfrom
mromaszewicz:fix/issue-99

Conversation

Copy link
Copy Markdown
Member

BindStyledParameterWithOptions passed the raw styled value directly to BindStringToObject for primitive types, without first removing the style prefix. This caused label (leading ".") and matrix (";param=") styles to fail with parse errors for non-struct, non-slice destinations.

Route primitive values through splitStyledParameter — the same function already used by the struct and slice paths — so the prefix is stripped before binding.

mromaszewicz requested a review from a team as a code owner February 27, 2026 18:12
mromaszewicz added the bug Something isn't working label Feb 27, 2026
mromaszewicz added this to the v1.2.1 milestone Feb 27, 2026
…odegen#99)

BindStyledParameterWithOptions passed the raw styled value directly to
BindStringToObject for primitive types, without first removing the style
prefix. This caused label (leading ".") and matrix (";param=") styles to
fail with parse errors for non-struct, non-slice destinations.

Route primitive values through splitStyledParameter — the same function
already used by the struct and slice paths — so the prefix is stripped
before binding.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL