Free tool
OpenAPI Diff
Paste the old spec on the left and the new one on the right. The diff lists operations that were added, removed or changed, and counts the ones that could break a client. It runs in your browser.
DELETE /pets/{id}new operationGET /breedsnew operation
How it compares
Each operation is keyed by method and path, for example GET /pets/{id}. An operation only in the new spec is added. One only in the old spec is removed.
For operations in both, the diff compares parameters, request body and responses. If any of the three differ, the operation is changed. The comparison is on the parsed data, so YAML against JSON and whitespace do not matter, but reordering keys inside an operation does count as a change.
Reading the output
The potential breaking count is removed plus changed. It is deliberately cautious: open each changed operation and decide whether a client would notice.
+ POST /pets/{petId}/uploadImage- DELETE /store/order/legacy~ GET /pets/findByStatus# +1 added -1 removed ~1 changed# 2 potential breaking changes
Which version to bump
- Major
- Something a client relies on is gone or now behaves differently: a removed operation, a new required parameter, a renamed field.
- Minor
- Only additions: new operations, new optional parameters, new optional response fields.
- Patch
- No change to the contract. Fixes to descriptions and examples.
Diffing in CI
To block breaking changes on every pull request, run oasdiff against the spec on your main branch. It looks inside schemas and gives a precise list of breaking changes, which this page does not.
Diffing specs so the docs stay current?
Give Specway the spec URL instead. Update now re-reads it and lists the endpoints that were added, changed and removed, and Keep in sync checks once a day. Free for one API: create an account.
- Update now
- Re-reads the spec URL and lists the endpoints that were added, changed and removed. Keep in sync does the same once a day.
- Public changelog
- Every applied sync is written to a changelog on the docs site.
- A page per endpoint
- Parameters, request body and responses read from the spec, grouped by tag in the sidebar.
Questions
How do I diff two OpenAPI specs?+
Paste the old spec on the left and the new one on the right, in YAML or JSON. The tool lists added, removed and changed operations. Removed and changed ones are counted as potential breaking changes.
What counts as a breaking change in OpenAPI?+
Anything an existing client could trip on: a removed operation, a new required parameter or body field, a changed parameter type, a removed response field, a narrower enum or pattern, an optional field becoming required.
Why does the tool say "potential breaking change"?+
It knows an operation changed, not whether the change breaks anyone. Adding an optional parameter changes an operation without breaking it. Review each one, or use oasdiff for a rule-based answer.
How is this different from a textual diff?+
A text diff shows every changed line, including formatting and reordering at the top level. This diff works per operation, so it shows which endpoints changed. It does not show which line inside the operation changed.
Should I version-bump on every breaking change?+
Under semver, yes: a breaking change is a major version. For an HTTP API that usually means a new /v2 path, or a deprecation period on the old behavior with notice to clients.
Does it diff component schemas?+
Not directly. It compares each operation's parameters, request body and responses as written. If those point at a schema with $ref and only the schema changed, the operation does not show as changed. Use oasdiff for schema-level changes.
See your docs in a minute
Paste the link to your OpenAPI file. Free for one API, no card needed.