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
fix(joiner): include documentation fields in semantic-dedup equivalence by default
Two schemas that differ only in title/description/example/examples are no
longer treated as equivalent by the joiner's schema comparison. Semantic
deduplication previously replaced the surviving canonical schema's docs at
every $ref site, producing misleading API docs (a 403 response landing on a
schema whose description said "The request is invalid").
- Add EquivalenceDocs type with "include" (default, strict) and "ignore"
(legacy loose) values
- Add CompareSchemasWithOptions accepting CompareOptions; CompareSchemas
delegates with the strict default
- Thread compareDocs bool through compareShallow/compareDeep and all
recursive helpers
- Add JoinerConfig.EquivalenceDocs, WithEquivalenceDocs option, and
--equivalence-docs CLI flag
- Update metadata-only tests to reflect the new strict default; add
regression test mirroring issue #363 (BadRequest/Forbidden/NotFound
error-response schemas)
- Update joiner/deep_dive.md with the new flag and default change
Callers needing the old loose behavior can opt in via
WithEquivalenceDocs("ignore") or --equivalence-docs ignore.
Fixes#363
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments