OpenAPI Diff
Compare endpoint and operation changes between two OpenAPI documents.
Your result will appear here…
How to use OpenAPI Diff
- Paste the complete base specification, then === TARGET === on its own line, then the proposed specification. YAML and JSON are accepted.
- Select Compare to list operation additions, removals, and edits.
- Use Breaking Change Checker for selected compatibility warnings, Schema Diff for named component changes, and Migration Report for a broader release summary.
Example
Input / settings:
openapi: 3.0.3
info: {title: Orders API, version: "1"}
paths:
/orders:
get:
parameters:
- {name: limit, in: query, schema: {type: integer}}
responses:
"200": {description: OK}
=== TARGET ===
openapi: 3.0.3
info: {title: Orders API, version: "2"}
paths:
/orders:
get:
parameters:
- {name: limit, in: query, required: true, schema: {type: integer}}
responses:
"200": {description: OK}Output:
Changed: GET /orders
Paste this entire example into the tool. The query parameter becomes required in the target. Diff identifies the edited operation; Breaking Change Checker reports the selected compatibility risk.
When to use
- Compare exported API contracts from a release branch and a pull request.
- Find endpoint additions and removals before reviewing individual operation edits.
- Separate operation changes from component-only changes during a contract review.
Overview
OpenAPI Diff compares inline HTTP operations in two API specifications. It identifies added, removed, and edited operations so you can choose what to inspect in a pull request; a Changed line does not decide whether clients remain compatible.
Supported input
Two YAML or JSON objects: source first, then a line containing === TARGET ===, then target.
Output details
Added, removed, and changed inline path operations, identified by method and path.
Limitations
- Only inline paths operations are compared. Changes confined to components, top-level security, or servers are not reported here.
- Changed operations use JSON serialization, so object-key order can cause a Changed report. $ref values are not resolved.
- No version-specific compatibility rules or runtime behavior are tested. Use schema comparison and consumer tests alongside this report.
Common mistakes
- A Changed line can result from documentation edits or object-key ordering; it is not automatically a breaking change.
- Changes only inside components, document-level security, or servers are outside this operation diff.
- A $ref pointer can stay unchanged while its target changes. This tool does not expand internal or external references.
Practical tips
- Keep the base and target in the intended order: reversing them swaps added and removed operations.
- Review the original contract alongside the report, then test representative clients. A no-change result only covers the inspected inline operations.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers. Comparison parses the pasted specifications locally. It does not contact API servers or fetch reference URLs; redact credentials before sharing a report.
References
Frequently asked questions
How is OpenAPI Diff different from Breaking Change Checker?
Diff lists added, removed, and serialized changes to inline operations. Breaking Change Checker evaluates selected removals and newly required inputs, but neither proves complete backward compatibility.
Why can a reordered operation appear as Changed?
Operations are compared using JSON serialization. Object-key order can change the serialized text even when the API meaning is unchanged.
Which tool should I use for component-only changes?
Use OpenAPI Schema Diff to identify changed names under components.schemas. Use Migration Report for a combined operation, component, declared version, and server summary. Neither resolves references or establishes runtime compatibility.