Add a CI contract test guarding the frozen schema #53

Open
opened 2026-07-01 00:59:14 +00:00 by manlycucumber · 0 comments
manlycucumber commented 2026-07-01 00:59:14 +00:00 (Migrated from github.com)

Problem

A frozen contract is only meaningful if CI fails when a change breaks it. A contract/snapshot test must catch removed or changed fields before they merge.

Acceptance criteria

  • A CI test validates representative responses against the frozen schema.
  • Removing or retyping a field fails the test.
  • Adding an optional field passes.
  • The test runs on every pull request.

Notes

Workflow-full: issues land via squash PRs that must pass this gate.

## Problem A frozen contract is only meaningful if CI fails when a change breaks it. A contract/snapshot test must catch removed or changed fields before they merge. ## Acceptance criteria - [ ] A CI test validates representative responses against the frozen schema. - [ ] Removing or retyping a field fails the test. - [ ] Adding an optional field passes. - [ ] The test runs on every pull request. ## Notes Workflow-full: issues land via squash PRs that must pass this gate.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Directorium/Api#53
No description provided.