1. The problem
In one sentence
A new version of the spec changes something in a way that existing clients cannot handle: it removes a route, makes a field required, narrows a list of allowed values, or changes a type.
A story
Version 2 of the User API ships on Tuesday. Four small changes went in during the sprint: GET /users/{id} was removed in favour of a new route, email became a required field of the create request, the filter value banned was dropped from the list of allowed statuses, and the id in the answers changed from a number to a string. Each change looks tidy in the pull request. Every client built against version 1 breaks on at least one of them.
Why it hurts
A client is a program that was written against a version of the contract. It does not read the new version. It expects what the old one said.
- For developers: the changes that break clients are often the ones that look like clean-up: removing an old route, tightening a rule, fixing a type. Reviewers read them as improvements.
- For managers: a breaking change without a plan means broken customers on release day, and a rushed rollback or a hotfix. The cost is paid by people who did not make the change.
- For DevOps: this is a check that needs no running server. Compare the old and the new spec in the pipeline, and block a merge that introduces a breaking change without a decision.
Example
Four breaking changes, each from a pair of small specs in the sandbox:
removed route GET /users/{id} is gone in v2
required request field POST /users: email is now required (v1: only name)
removed enum value GET /users?status=: the value banned is no longer allowed
type changed the id in the answers: integer in v1, string in v2
A fifth, an optional parameter that becomes required, breaks every caller that did not send it.
How to detect it without clrsig
- Compare the two specs with an ordinary diff tool (
diff v1.yaml v2.yaml) and read the changes for routes, required lists, enums and types. - Ask the clients’ owners which routes and fields they use.
How to fix it
There are two usual causes:
- The change is not meant to break anyone (the common case). Keep the old behaviour: add the new route beside the old one, make the new field optional with a default, keep the old enum value for a while, accept both types.
- The change is meant. Then do it in the open: a new version of the API, a deprecation period with a date, and a note to every client before the old behaviour goes.
To tell which: ask whether any released client depends on the old behaviour. If you do not know, assume it does.
Related problems
AC-015 Fields are renamed, removed or re-cased, AC-055 Not every change is equally risky, AC-056 Which of my tests will the change break?. See also the site’s Renamed or Removed Response Fields.
Words used on this page are explained once in the glossary.
2. How clrsig helps
Check
CS-DIFF-001 Breaking change: a change that can break existing clients (oasdiff level ERR). State: caught. Severity today: failure (exit code 1). clrsig diff uses the rules and levels of oasdiff as they are.
Command
Each command compares two spec files. Nothing is sent and no server is needed. Run them from the sandbox folder:
clrsig diff specs/diff/removed-endpoint/v1.yaml specs/diff/removed-endpoint/v2.yaml
clrsig diff specs/diff/new-required-request-field/v1.yaml specs/diff/new-required-request-field/v2.yaml
clrsig diff specs/diff/enum-value-removed/v1.yaml specs/diff/enum-value-removed/v2.yaml
clrsig diff specs/diff/type-narrowed/v1.yaml specs/diff/type-narrowed/v2.yaml
Exit code: 0 no change at or above the --fail-on level (breaking by default), 1 one or more such changes, 2 a spec parse or configuration error. Here each is 1.
What you see
Output from clrsig v0.21.0, recorded on 2026-11-30. The removed route:
[ERR] ! API path removed without deprecation GET /users/{id}
1 change(s) · 1 breaking
Output from clrsig v0.21.0, recorded on 2026-11-30. The new required field:
[ERR] ! the request property `email` became required POST /users
1 change(s) · 1 breaking
Output from clrsig v0.21.0, recorded on 2026-11-30. The removed enum value:
[ERR] ! removed the enum value `banned` from the `query` request parameter `status` GET /users
1 change(s) · 1 breaking
Output from clrsig v0.21.0, recorded on 2026-11-30. The type change (the same schema is used by three operations, so it is reported three times):
[ERR] ! the `items/id` response's property `type` changed from `integer` to `string` for status `200` GET /users
[ERR] ! the `id` response's property `type` changed from `integer` to `string` for status `201` POST /users
[ERR] ! the `id` response's property `type` changed from `integer` to `string` for status `200` GET /users/{id}
3 change(s) · 3 breaking
How to read it: [ERR] is the breaking level. Each line says what changed and on which operation. A change to a shared schema is reported once for each operation that uses it.
Where to look
- Reports:
--format json,junit,htmlormarkdown, and--report format=filefor extra files in CI. - One file against git:
clrsig diff openapi.yaml --against origin/maincompares the spec on disk with its version at a git ref. - GitHub Action: the
base-spec,revision-spec,fail-onandagainstinputs. - Help, What We Check:
CS-DIFF-001is listed with the others.
How clrsig helps you fix it
It lists every breaking change, with the operation, before you ship. It cannot tell you whether any client relies on the old behaviour: the next card (AC-056) helps with your own scenarios.
Limits
- It compares two specs. A server that does not follow its own new spec is a different problem (AC-026).
- It uses oasdiff’s rules as they are; a change that oasdiff does not classify as breaking is not reported as breaking.
More ways
Nothing yet.
3. Video brief for Google NotebookLM
VIDEO BRIEF — AC-054 · A spec change breaks existing clients
Length: 5 to 7 minutes. Language: English. Audience: developers, with a line each for managers and DevOps.
One idea: a client was written against a version of the contract and does not read the new one, so every tidy-looking change that tightens or removes something can break it.
Open with this story: Version 2 of an API ships on Tuesday. Four small changes went in during the sprint: a route was removed, a field became required in the create request, a value was dropped from the list of allowed statuses, and an id changed from a number to a string. Each change looks tidy in the pull request. Every client built against version 1 breaks on at least one of them.
Say these facts, in this order:
1. clrsig diff compares two spec files. It needs no server, and sends nothing.
2. Four examples, each reported at the breaking level, ERR: an API path removed without deprecation; the request property email became required; the enum value banned removed from the status parameter; a response property type changed from integer to string.
3. A change to a shared schema is reported once for each operation that uses it; the type change appears three times.
4. The exit code is 1 when a change is at or above the fail-on level, which is breaking by default.
5. Two usual causes: the change is not meant to break anyone (keep the old behaviour beside the new), or it is meant (a new version, a deprecation period, a note to every client).
6. To tell which: ask whether any released client depends on the old behaviour; if you do not know, assume it does.
7. For managers: a breaking change without a plan means broken customers on release day.
8. For DevOps: compare the old and the new spec in the pipeline and block a breaking change without a decision.
Show on screen: the four example lines, the four commands, and the four output blocks, copied exactly from the card.
Name the check: CS-DIFF-001, Breaking change. Say the clrsig version: v0.21.0.
Explain these words once: breaking change (a change that can break existing clients); deprecation (announcing that something will be removed, with time to move); enum (a fixed list of allowed values); exit code (0 clean, 1 a finding, 2 setup or spec broken).
Say what clrsig does not see here: it compares specs, so a server that does not follow its own new spec is a different problem; it uses oasdiff's rules as they are.
Safety line (if a write is shown): not needed, diff sends nothing.
Finish with three recap questions:
1. Does clrsig diff need a running server? (No.)
2. Why is a change to a shared schema reported several times? (Once for each operation that uses it.)
3. What do you do if you do not know whether a client depends on the old behaviour? (Assume it does.)
Tease the next video: AC-055 · Not every change is equally risky.
Do not: say "contract testing" alone; say clrsig "catches everything"; invent flags, IDs or numbers; read tables aloud; use any fact that is not in the card.