name: API Contract Check
on: pull_request jobs: delimit: runs-on: ubuntu-latest permissions: pull-requests: write steps: - uses: actions/checkout@v4 - uses: delimit-ai/delimit-action@v1 with: spec: api/openapi.yaml
name: API Contract Check
on: pull_request jobs: delimit: runs-on: ubuntu-latest permissions: pull-requests: write steps: - uses: actions/checkout@v4 - uses: delimit-ai/delimit-action@v1 with: spec: api/openapi.yaml
name: API Contract Check
on: pull_request jobs: delimit: runs-on: ubuntu-latest permissions: pull-requests: write steps: - uses: actions/checkout@v4 - uses: delimit-ai/delimit-action@v1 with: spec: api/openapi.yaml
npx delimit-cli lint api/openapi.yaml
npx delimit-cli diff api/openapi.yaml --base main
npx delimit-cli lint api/openapi.yaml
npx delimit-cli diff api/openapi.yaml --base main
npx delimit-cli lint api/openapi.yaml
npx delimit-cli diff api/openapi.yaml --base main
# .delimit/policies.yml
rules: - id: no-v2-removals change_type: endpoint_removed path_pattern: "/v2/*" severity: error message: "v2 endpoints cannot be removed without a deprecation period"
# .delimit/policies.yml
rules: - id: no-v2-removals change_type: endpoint_removed path_pattern: "/v2/*" severity: error message: "v2 endpoints cannot be removed without a deprecation period"
# .delimit/policies.yml
rules: - id: no-v2-removals change_type: endpoint_removed path_pattern: "/v2/*" severity: error message: "v2 endpoints cannot be removed without a deprecation period"
npx delimit-cli setup
npx delimit-cli setup
npx delimit-cli setup - Diff the spec against the base branch on every PR
- Classify each change as breaking or non-breaking
- Tell me the exact semver impact
- Give me a migration guide so I could fix it fast - What changed (endpoint removed, type changed, enum value removed)
- Where it changed (exact path in the spec)
- Why it's breaking (severity classification)
- How to fix it (migration guide) - Claude Code makes changes that modify the OpenAPI spec
- Delimit runs and flags the breaking changes in a PR comment
- Claude reads the comment, understands the issue, and pushes a fix
- Delimit re-runs — all checks pass - GitHub Action: marketplace/actions/delimit-api-governance
- Live PR demo: delimit-ai/delimit-mcp-server/pull/11
- Source: github.com/delimit-ai/delimit-mcp-server