[Go to site: main page, start]

OpenAPI validator

Validate OpenAPI 3.0 and 3.1 JSON or YAML locally. Check schema structure, internal references, operation IDs and path parameters with a downloadable report.

A better API handoff starts here.

Check an API contract before sharing it with your team or building a client around it. The validator combines Scalar’s OpenAPI document checks and Ajv’s JSON Schema 2020-12 checks with explicit checks for missing local references, required version metadata, duplicate operation IDs and path parameters. It runs in a cancellable browser worker and never calls your API or retrieves remote schemas.

Free to use. No signup. Output: Schema issues + document paths + JSON report.

How to use OpenAPI validator

  1. Paste a self-contained OpenAPI 3.0.x or 3.1.x document as JSON or YAML.
  2. Validate locally and review document paths or syntax-error locations. Cancel long-running checks if needed.
  3. Correct the source, run again and download the JSON report to share with your team.

Worked example: Review a project lookup endpoint

Passing supported checks means the document structure was accepted. It does not prove endpoint behavior, validate real responses or audit API security.

Example input
The example defines GET /projects/{id}, a required string path parameter, a 200 response and a local Project schema reference.
Expected output
A passing report for OpenAPI 3.1.0 and one path operation. Removing the id parameter or pointing at a missing schema produces a specific issue.
OpenAPI validator: example workspace
Example workspace. Try the editable tool above. View example at full size

Questions, answered

Which OpenAPI versions and references are supported?

OpenAPI 3.0.x and 3.1.x are supported. Local JSON-pointer references such as #/components/schemas/Project are checked. Swagger 2, OpenAPI 3.2, external files, schema IDs, anchors, dynamic references and custom JSON Schema dialects are unsupported. Bundle external files and expand YAML aliases first.

Is the document changed or sent anywhere?

No. Validation runs on a detached copy in a local browser worker. Your pasted document remains unchanged. Missing info.version is reported rather than silently populated. No URL, API endpoint or remote reference is fetched.

What are the limits and report scope?

Documents are limited to 500,000 characters, 500 distinct references, 15,000 values including reference-target checks and 40 nesting levels. A worker is stopped after 15 seconds. Reports show up to 200 issues with document paths. Schema checks and selected consistency checks are not a complete API behavior, performance or security audit.

Keep building

Ready for feedback on your project?

Share what you are building with the VibeCodingList community.