Skip to main content

OpenAPI Diff & Breaking Change Checker

Compare two OpenAPI or Swagger specs and flag breaking API changes

Input

Baseline spec

Paste JSON or YAML, upload a file, or import a URL.

Candidate spec

Paste JSON or YAML, upload a file, or import a URL.

Results

Compare two specifications

Add a baseline and a candidate spec, then select Compare.

Details

Select a change to see its details.

Not compared yet.

How to use

  1. 1.Paste, upload or import the baseline spec (the version clients use today).
  2. 2.Add the candidate spec (the proposed version).
  3. 3.Select Compare.
  4. 4.Review the Breaking, Warnings and Compatible tabs, and filter by method or area.
  5. 5.Select a change to see the before and after values and why it matters.
  6. 6.Copy the breaking changes for a pull request, or download the Markdown or JSON report for CI.

What does OpenAPI Diff check?

OpenAPI Diff compares a baseline and a candidate API specification by meaning, not by text. It matches operations by method and path (so /users/{id} and /users/{userId} are the same endpoint), resolves internal $ref references, and reports each contract change with its operation, location, before and after values, and why it matters to clients. Swagger 2.0, OpenAPI 3.0 and OpenAPI 3.1 in JSON or YAML are supported, and Swagger 2.0 is normalized to the OpenAPI 3 shape first.

How changes are classified

Requests and responses are judged in opposite directions. On the request side (what clients send), anything that narrows what is accepted is breaking: a new required parameter or property, a removed enum value, a changed type or format, a lower maximum or a higher minimum, a new pattern, or a removed content type. On the response side (what clients receive), anything that removes or widens what clients read is breaking or a warning: a removed property or success status, a changed type, a new enum value, or a required property that became optional. Removed endpoints, new authentication, changed security schemes and added OAuth scopes are breaking. Description, summary, title and example edits are documentation changes and are hidden unless you turn them on.

Limits and privacy

The comparison runs in your browser with a built-in rule engine; specs are never uploaded. URL import fetches the file directly from your browser without cookies, so servers that block cross-origin requests must be uploaded or pasted instead. Each spec can be up to 5 MB. External $ref files are reported but not fetched. Servers, callbacks, webhooks, links and vendor extensions are not compared, and the rules describe likely client impact rather than guarantee it: a strict or lenient server can behave differently.

Frequently asked questions
Are my API specs uploaded to a server?
No. Parsing and comparison run in a Web Worker in your browser. URL import fetches the file directly from your browser without cookies, and nothing is stored or logged. Specs that describe private APIs never leave your device.
Why is the same change breaking in one place and compatible in another?
Requests and responses are judged in opposite directions. Clients send requests, so anything that accepts less (a new required field, a removed enum value, a lower maximum) is breaking. Clients read responses, so anything that removes data or adds unexpected values (a removed property, a new enum value) is breaking or a warning.
Does it use oasdiff?
No. oasdiff is a Go program and has no maintained browser build, so CodingTool uses its own TypeScript rule engine that runs locally. It covers endpoints, parameters, request bodies, responses, schemas and security, and documents its limits such as unfetched external references.

CodingTool is officially live on