Small Tools
API: Compare & migrate utility

OpenAPI Schema Diff

Compare named component schemas between two OpenAPI documents.

● This tool runs entirely in your browser. Your input is never uploaded to our servers.

Browse OpenAPI & API tools →

Output
Your result will appear here…

How to use OpenAPI Schema Diff

  1. Paste the baseline specification, then === TARGET ===, then the target specification.
  2. Select Compare Schemas to list added, removed, and changed component schemas.
  3. Inspect field-level changes before deciding whether they are compatible.

Example

Input / settings:

{"openapi":"3.0.3","info":{"title":"Demo","version":"1"},"paths":{},"components":{"schemas":{"User":{"type":"object","properties":{"id":{"type":"integer"}}}}}}
=== TARGET ===
{"openapi":"3.0.3","info":{"title":"Demo","version":"2"},"paths":{},"components":{"schemas":{"User":{"type":"object","properties":{"id":{"type":"string"}}},"Team":{"type":"object"}}}}

Output:

Changed schema: User
Added schema: Team

When to use

Overview

Compare named component schemas between two OpenAPI documents.

Supported input

Source and target YAML or JSON objects separated by === TARGET ===, each optionally containing components.schemas.

Output details

Added, removed, or changed component schema names.

Limitations

Privacy and security

This tool runs entirely in your browser. Your input is never uploaded to our servers.

References

Frequently asked questions

Does this compare every nested field individually?

It reports which named schemas differ; it does not explain every field-level change.

How do I separate both documents?

Place === TARGET === on its own line between the two YAML or JSON documents.

Does it resolve references?

No. References are compared as part of the schema text structure and not expanded.

Learn more

Related tools