Spotting Breaking API Changes with an OpenAPI Diff
Which API changes break clients and which are safe, how request and response rules differ, and how to turn an OpenAPI diff into a changelog.

An API change that looks harmless in a pull request can break every mobile app already installed on users' phones. A text diff of the OpenAPI file does not help much, because it shows lines rather than meaning. The OpenAPI Diff and Breaking Change Checker compares two versions of an API description structurally and sorts every difference into breaking, worth reviewing and safe.
The direction rule
Whether a change breaks clients depends on which way the data flows.
For requests, the client is the sender. A change breaks clients when they must now send something new, or may no longer send something they used to. New required parameters, a property that became required, a narrower type, a lower maximum or a removed enum value all break existing calls.
For responses, the client is the receiver. A change breaks clients when they may no longer receive something they rely on. A removed property, a changed type or a property that is no longer guaranteed will break code that reads it.
The same edit can be safe in one direction and breaking in the other. Adding an enum value to a request is fine, since old clients simply do not use it. Adding one to a response can crash clients that map enums strictly, so the checker lists it for review.
What the checker compares
Operations are matched by method and path. For each pair the tool compares parameters by location and name, request bodies including their media types, and every response code with its schema. Local references are resolved first, so a schema shared across endpoints is compared wherever it is used. Nested properties and array items are followed several levels deep. Security requirements are compared too: adding authentication to a public endpoint breaks every anonymous client.
Swagger 2 files are converted on the fly, so you can compare an old Swagger description with its OpenAPI 3 replacement.
Reading the result
The summary shows counts of breaking, review and safe changes and suggests a semantic version bump: major for any breaking change, minor for additions, patch otherwise. The changes tab lists each difference with its location, such as POST /orders body.qty, and can be filtered to breaking changes only. The endpoints tab shows which operations were added, removed or changed.
A worked example
Suppose version 1.4 of a shop API becomes 2.0. The coupon lookup endpoint is deleted, the product list gains a required currency parameter and its limit maximum drops from 100 to 50, the order body now requires a quantity, and the stock field in product responses changes from an integer to a string. The checker reports all five as breaking. It also lists a removed optional note field and a new archived status in responses for review, and a new returns endpoint and rating field as safe. The suggested bump is major, which tells the team that old clients need a migration plan or a parallel version.
Turning it into release notes
The changelog tab writes Markdown with sections for breaking changes, changes to review and non-breaking changes. Paste it into a pull request so reviewers see the impact, or into your API documentation's release notes. CSV and JSON reports suit tracking spreadsheets and automation.
Habits that keep APIs stable
- Add new fields as optional and give them defaults.
- Deprecate before removing, and keep deprecated endpoints for an announced period.
- Treat response enums as open-ended in client code.
- Never reuse a field name with a different type; add a new field instead.
- Run the diff on every pull request that touches the API description.
Limits
The checker compares descriptions, not running servers, so a change in server behaviour that the file does not describe will not show up. External file references are not loaded, so bundle split specifications first. Complex schema combinations such as oneOf are compared by type rather than branch by branch. Use the result as a strong review aid alongside contract tests.



