Skip to content

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

Open
mromaszewicz wants to merge 1 commit intooapi-codegen:mainfrom
mromaszewicz:fix/issue-99
Open

fix: strip style prefix for label/matrix primitive parameters (#99)#100
mromaszewicz wants to merge 1 commit intooapi-codegen:mainfrom
mromaszewicz:fix/issue-99

Conversation

@mromaszewicz
Copy link
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.

…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>
@mromaszewicz mromaszewicz requested a review from a team as a code owner February 27, 2026 18:12
@mromaszewicz mromaszewicz added the bug Something isn't working label Feb 27, 2026
@mromaszewicz mromaszewicz added this to the v1.2.1 milestone Feb 27, 2026
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.

1 participant