DevTools Hub

Search tools

Search for a developer tool

Development

OpenAPI Validator

Check an OpenAPI/Swagger document for broken refs, duplicate IDs and other spec violations.

4 errors
  • Duplicate operationId "listPets" (also used at paths./pets.get).
    paths./pets.post.operationId
  • Response "201" is missing a required "description".
    paths./pets.post.responses.201.description
  • Path template references "{petId}" but no matching "in: path" parameter named "petId" is declared.
    paths./pets/{petId}.get
  • $ref "#/components/schemas/Pett" does not resolve to anything in this document.
    paths./pets.post.responses.201.content.application/json.schema

What this tool does

Paste, upload, or load an example OpenAPI (3.x) or Swagger (2.0) document and get back a list of structural problems — not just JSON/YAML syntax errors, but violations of the OpenAPI spec itself and common real-world mistakes that a plain JSON/YAML validator would never catch.

What gets checked

What this isn't

This is a curated set of the mistakes that show up most often in real specs, not a full JSON Schema meta-validation against the official OpenAPI specification schema. It won't catch every possible spec violation, but the checks above cover the ones that actually break tooling — code generators, mock servers, and API gateways — in practice.

FAQ

How is this different from the OpenAPI Viewer?

The OpenAPI Viewer is for reading a spec you already trust — browsing endpoints, parameters, and schemas. This tool is for finding out whether the spec is actually correct before you rely on it, generate code from it, or hand it to someone else.

Is my spec uploaded anywhere?

No — validation happens entirely in your browser. Nothing is sent to a server.

Related tools