Skip to content

fix: set a named array query parameter in the generated params test - #90

Merged
MarkRosemaker merged 2 commits into
mainfrom
fix/named-array-param-sample
Nov 26, 2026
Merged

MarkRosemaker merged 2 commits into
mainfrom
fix/named-array-param-sample

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Owner

ParamSamples skipped any array query parameter whose schema is a $ref to a named array, such as golden's Modules or ibkr's OrderFilters. As a result, TestClient_Params never checked that the client actually sends it. Turning ibkr's filters into a named OrderFilters schema made its check disappear from the generated test.

A named slice takes the same composite literal as an unnamed one (Modules{ModuleSummaryDetail}), so it is now sampled the same way. Golden's params test now sets modules and checks summaryDetail on the wire. The float sample moves from 9.5 to 10.5 because it counts the parameter's position.

make ready passes.


Generated by Claude Code

ParamSamples skipped an array parameter whose schema is a $ref to a
named array, such as Modules, so TestClient_Params never checked that
the client sends it. A named slice takes the same composite literal, so
sample it like an unnamed one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
@MarkRosemaker
MarkRosemaker merged commit 9b76168 into main Nov 26, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the fix/named-array-param-sample branch November 26, 2026 01:22
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