You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0fd15d4
Browse filesBrowse the repository at this point in the historyBrowse files
test(builders): cover the field-dispatch arms and the response items anchor
Extends two harnesses ahead of factoring the duplicated field dispatch out of the
parameters and responses builders, because neither could see the change.
The conformance suite's subjects were all named or alias types, which reach only
two arms of the dispatch. It gains struct, interface, map, pointer, plain basic,
and a slice with an inline element, so the arms about to be moved are compared in
all three positions rather than guarded by goldens alone.
The second gap was the dangerous one. The responses builder threads
`descendBody("items")` through its array arms, and that affects cross-ref
provenance pointers only — never the emitted spec. No golden can see it, and
neither can a suite that compares schemas, so dropping those two lines would have
passed everything. The provenance corpus gains an array-bodied response whose
element is inline, which pins
/responses/{name}/schema/items/properties/code
and fails without the threading. Inline is the operative word: a named element
anchors in its own definition instead, where the threading is unobservable, so a
witness built from one would prove nothing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
0 commit comments