This repo has 3 intentional breaking changes between openapi-v1.yaml (the baseline) and openapi.yaml (the current spec). Let's catch them.
The breaking changes hidden in this repo
- Removed endpoint --
DELETE /items/{id}was deleted - Renamed field --
namewas renamed totitlein the response schema - Changed parameter type --
idpath parameter changed fromintegertostring
# Install and run in one command
npx delimit-cli lint --old openapi-v1.yaml --new openapi.yamlThat's it. Delimit found 3 breaking changes, classified the semver impact as MAJOR, and generated migration guidance.
Drop this into .github/workflows/api-check.yml (already included in this repo):
name: API Governance
on: pull_request
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: delimit-ai/delimit-action@v1Every pull request that touches an OpenAPI spec will now be checked for breaking changes automatically.
- Removed endpoints, fields, or parameters
- Type changes (integer to string, etc.)
- Renamed fields and endpoints
- Required field additions
- Response schema narrowing
- 27 change types total, with semver classification