Repository navigation
fix(contract): file-specific certification response component names; guard against same-name components with different bodies - #777
Merged
Conversation
…guard against same-name components with different bodies Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



fix(contract): file-specific certification response component names; guard against same-name components with different bodies
The certification build-session and process-record contracts reused OpenAPI response component names (
PayloadTooLarge,Unauthorized,NotFound,InternalError,BadRequest,Forbidden,Conflict) that the existing certification contract and each other define with different bodies. A consumer that merges every contract file into one component namespace sees a conflict. This change gives the two newer files their own component names. Wire bodies are unchanged.Ticket: none (contract fix: same-name response components with different bodies across certification files)
Security note: contract-only; no response body, status code, error code or validation rule changes; the closed error bodies stay closed
Spine-Trail: st_b8b70b04d692
What changes
certification/certificate_build_sessions_endpoints.json: response components renamed with the prefixCertificateBuildSession(PayloadTooLarge,Unauthorized,NotFound,BadRequest,Forbidden,Conflict), and every reference updated.certification/process_records_endpoints.json: response components renamed with the prefixProcessRecord(PayloadTooLarge,Unauthorized,NotFound,InternalError), and every reference updated.certification/certification_endpoints_v0.jsonis unchanged.tests/test_component_name_collisions.py: loads every schema file and fails when the samecomponents.<section>.<name>appears in two files with different bodies. It lists all seven clashes on the previous develop and passes after this change.Compatibility
*_schema.jsonfiles, not endpoint files, so no generated type name changes.Checks
scripts/local_gate.sh: passed (9058 passed, 2 skipped).scripts/compile_changelog.py --check,scripts/breaking_schema_check.py --check --base-ref origin/develop(no unacknowledged findings), parity and schema reachability up to date.PayloadTooLargeclash. The backend contract tests report no component conflict and no operation losing its contract id.Review receipt
🤖 Generated with Claude Code