01What is OpenAPI Validator?
You edited an OpenAPI file by hand, renamed a schema, and now you are not sure every reference still points somewhere. This validator gives you a fast first check in the browser. Paste JSON or YAML, click Validate, and you get a list of errors, warnings and info notes, each with the path in the document where it applies. Be clear about what it is. It runs a set of rules taken from the OpenAPI Specification text, for 3.0 and 3.1, with 3.2 checked against the 3.1 rules. It does not validate against the official OpenAPI JSON Schema, and it does not check your component schemas as JSON Schema. A spec that passes here can still fail Spectral, Redocly CLI or swagger-parser, so keep one of those in CI. What it checks is the stuff that bites. The openapi and info.version fields must be strings, which catches unquoted YAML versions. info.title and info.version must exist. Paths must start with a slash, and two paths that differ only in parameter names are flagged. Every {template} needs a matching in: path parameter with required: true, and every path parameter must appear in the template. Parameters need a name and a valid in value. operationIds must be unique. Response keys must be a three-digit status, 1XX to 5XX, or default, and each response needs a description. Every local $ref anywhere in the document is resolved, including ~1 escapes. Security requirements that name an undefined scheme are errors. Version rules differ a little. In 3.1 a document with only components or webhooks is accepted, and an operation without responses is a warning, as the spec allows. In 3.0 both are errors. Swagger 2.0 is recognised, with fewer checks. A quick example. Paste a YAML file with openapi: 3.0 and version: 1.0 unquoted. YAML reads both as numbers, so you get two errors: "openapi" must be a string (got 3), and info.version must be a string (got 1). Quote them and both go away. Limits matter here. JSON is parsed exactly. YAML goes through a small built-in parser that handles mappings, lists, quoted and block strings, and inline collections. It stops with a message on anchors, aliases and tags, so paste JSON if your file uses them. External $ref files are noted, not fetched. Nothing is uploaded.
Backend developers and API designers who hand-edit OpenAPI files and want a quick structural check before running a full linter or generating SDKs. The tool runs entirely in your browser, so your data never leaves your device.
02How to use OpenAPI Validator
- Paste your OpenAPI spec as JSON or YAML, or load one of the three examples
- Click Validate
- Read the Title, Paths and Operations summary, then the list of errors, warnings and info notes
- Filter the list by level when it gets long, and use each issue's path to find the spot in your file
- Fix the spec and validate again, copying the issue list if you need to share it
03Worked examples
- Input:
openapi: 3.0.3 info: title: Todo API version: 1.0.0 paths: /todos: get: responses: '200': description: OK - Result:
Valid (3.0.3), 1 path, 1 operation. 3 warnings: missing info.description, no operationId, no summary or description. 1 info: no servers defined. - 3.0.3 has two dots, so YAML keeps it as a string. Warnings do not make a spec invalid.
- Input:
openapi: "3.1.0", path /todos/{id} with a GET that has only a summary - Result:
Invalid. Error: "GET /todos/{id}: path template {id} has no matching 'in: path' parameter." Warning: no 'responses' (allowed in 3.1, but clients learn nothing about results). - Messages trimmed to the relevant ones.
- Input:
OpenAPI 3.0.0 JSON whose 200 response schema is {"$ref": "#/components/schemas/Missing"} with no components section - Result:
Invalid. Error: Broken $ref: "#/components/schemas/Missing" does not resolve to anything in this document. - Input:
openapi: 3.0 info: title: X version: 1.0 paths: {} - Result:
Invalid. Errors: "openapi" must be a string such as "3.1.0" (got 3; quote it in YAML). 'info.version' is required and must be a string (got 1; quote it in YAML). - YAML reads 3.0 and 1.0 as numbers, which print as 3 and 1.
- Input:
OpenAPI 3.0.3 JSON with paths /a/{id} and /a/{key}, both GET with operationId "x" - Result:
Invalid. Errors: Path "/a/{key}" is identical to "/a/{id}" apart from parameter names, which the spec forbids. operationId "x" is also used by GET /a/{id}; operationIds must be unique. - Input:
{"swagger":"2.0","info":{"title":"Old","version":"1"},"paths":{}} - Result:
Valid (Swagger 2.0), 0 paths. Info: only the info, paths, response and $ref checks apply. Warnings: missing info.description, Paths object is empty. - Swagger 2.0 is recognised but checked less strictly than OpenAPI 3.
04Common use cases
- Catching broken $ref pointers after renaming or moving shared components
- Spotting a path like /orders/{orderId} whose parameter was never declared with in: path
- Finding duplicate operationIds before generating a client SDK, where they cause method name clashes
- Catching /users/{id} and /users/{userId} defined as two separate paths, which the spec forbids
- Checking a YAML spec for unquoted version numbers that YAML turns into numbers
- A quick sanity check of a hand-edited spec before the full linter runs in CI
05Tips
- Quote version numbers in YAML: openapi: "3.1.0" and version: "1.0". Unquoted, 3.0 becomes the number 3 and fails the string check.
- Quote numeric response keys in YAML, such as "200":, so strict tools compare them as strings.
- Warnings and info notes never make a spec invalid. Only errors do, so a missing summary will not fail the check.
- Circular references are legal in OpenAPI but break some code generators and doc tools. Test your toolchain with them before relying on them.
06Related concepts
OpenAPI 3.1, JSON Schema, API design, Swagger.
Frequently Asked Questions
What is OpenAPI Validator?
OpenAPI Validator is a free, browser-based developer tool on AIDToolStack. Validate OpenAPI 3.0/3.1 and Swagger specs with detailed error reporting. It requires no installation or sign-up and works entirely in your browser.
Is OpenAPI Validator free to use?
Yes. No sign-up, no fees and no usage cap.
Does OpenAPI Validator store my data?
No. It runs in your browser; nothing is uploaded.