OpenAPI
OpenAPI breaking-change gate
Block accidental client breakage before merging; exit code 5 is the contract.
What counts as breaking
- Removed required request/response fields.
- Type changes on stable fields.
- Removed endpoints.
- Auth downgrades or expanded scopes.
Use semanticdiff git spec.yaml --fail-on-breaking
Exit 5 = breaking change; 0 = fine; 2 = schema error; 1 = differing output; 3 = threshold reached. Attach markdown output to PR for readable diffs.