Online toolTools

OpenAPI Diff

Paste two OpenAPI 3.x specs and see which changes break the contract and which are safe, grouped by endpoint. Paste JSON or YAML, upload a file or fetch a spec by URL. The last 10 comparisons are kept as history, and the comparison never leaves your browser.

1Two specs

2Summary

3Changes by endpoint

Paste two specs and press Compare to see the result here.

How it judges — a change is breaking when a client would stop working without being updated.

  • Breaking: endpoint or response code removed, required parameter added, parameter turned from optional into required, type change in a request or response schema, required field added to a request body, response field removed, enum value removed from a request, enum value added to a response.
  • Safe: new endpoint, optional parameter or field added, response field added, enum value added to a request, parameter relaxed to optional, deprecated flag.
  • $ref is resolved inside the document, and parameters are paired by in and name. For content, application/json is preferred.
  • Nothing is sent anywhere. Files are read in the browser only.
  • Fetching by URL is done by your browser directly. If the server does not allow CORS it cannot be read, so download the file and load it instead. GitHub file links are rewritten to their raw address.
  • The last 10 comparisons are kept as history in this browser's localStorage, and Clear history removes them.

Type to search

↑↓ moveEnter openEsc close