API Contract Keeper
Workflow
- •Identify contract impact. List affected endpoints, methods, payload fields, and error shapes.
- •Update source of truth. Update OpenAPI schema first. Keep examples and enum values synchronized with implementation.
- •Align server implementation. Update DTOs, validators, and serialization logic to match the spec.
- •Align tests. Add or update contract tests for success and failure cases. Add regression tests for backward compatibility where needed.
- •Verify and publish. Run API tests and contract checks. Produce a concise changelog entry for consumers.
Output Contract
Always report:
- •OpenAPI paths and components changed.
- •DTO validator test files updated.
- •Breaking change status and migration notes.
- •Exact verification commands executed.