Venture Lab 10BETA Free beta · early access

Home › Guides › API Change Radar

How-to guide · API Change Radar

How to detect breaking changes between two OpenAPI specs

A change is breaking when a client that worked yesterday fails today without changing its code. Comparing the old and new spec before release catches most of these.

Updated · Venture Lab 10

Changes that break existing clients

ChangeWhy it breaks
An operation (path + method) is removedClients that call it get an error
A new required parameterExisting calls do not send it
A parameter's type changes, for example integer → stringExisting values may no longer validate
The request body becomes requiredCalls without a body are now invalid
A documented response is removedClients that handle that status lose their contract
A parameter is removedClients that send it may have it ignored or rejected

New operations, new optional parameters and new responses are usually safe.

Marking an operation as deprecated breaks nothing by itself. It is a signal to plan the migration.

What the spec says about parameters

The OpenAPI Specification defines a unique parameter by the combination of its name and location (in).

So an existing parameter becomes breaking when required flips to true, or when it moves from query to header.

1. Get both versions

Take the spec from your last release, from a git tag or from the production docs endpoint, and the spec from your branch. JSON and YAML are both fine, and so are OpenAPI 3.x and Swagger 2.0.

2. Compare

Paste both into the free OpenAPI diff. Parsing happens on your device; YAML is read with the bundled js-yaml library. The tool reports:

Local $ref parameters are resolved.

3. Decide

Know the limits

The browser tool does not compare response body schemas, external $ref files or security scopes. For those, or to fail a CI build automatically, use a CLI such as oasdiff. See the comparison guide.

Sources

Venture Lab 10 is independent. Other product and service names are used only to describe compatibility or for comparison, and are trademarks of their owners.

← All guides