Skip to content

Correct parameter handling in Go example generation script#566

Merged
justinpolygon merged 1 commit intomasterfrom
fix/go-example-generator-params
Feb 24, 2026
Merged

Correct parameter handling in Go example generation script#566
justinpolygon merged 1 commit intomasterfrom
fix/go-example-generator-params

Conversation

@justinpolygon
Copy link
Collaborator

What was changed

  • Fixed zero-parameter endpoints (e.g. GetMarketHolidaysWithResponse, GetMarketStatusWithResponse):
    • No more unused gen import
    • Correct call syntax (no syntax error on newline)
  • Made every WithResponse(...) call consistently multiline (including zero-param cases) so your token-replacement logic works everywhere
  • All previous fixes (enum typing, real OpenAPI values vs TOKEN_, etc.) preserved

Result
All generated examples now compile cleanly and look uniform across the entire client.

@justinpolygon justinpolygon merged commit ad50ecf into master Feb 24, 2026
12 checks passed
@justinpolygon justinpolygon deleted the fix/go-example-generator-params branch February 24, 2026 15:48
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.

1 participant