Lint an OpenAPI document

Paste an OpenAPI 3.0 or 3.1 document as JSON or YAML and get every problem that breaks generated clients, mock servers and contract tests: $refs that do not resolve, path parameters that are not declared or not required, duplicate operationIds, operations without responses, responses without descriptions, and security schemes that do not exist. Each finding has a severity, a rule name and the JSONPath where it was found.

Errors, warnings and notes

Errors are violations of the specification or problems that will break tooling — a code generator will fail or emit the wrong signature. Warnings are legal but costly: no 4xx responses documented, no operationId, a localhost server URL. Notes are things worth a look, such as a schema nothing references.

Why undocumented errors matter for testing

A spec that lists only the 200 tells a contract test, a mock server and a client generator nothing about the 404, 409 or 422 the API really returns — so none of them can be tested against the spec. Document the failure responses you return, with their bodies.

What it does not check

It does not fetch external $refs, does not validate example values against their schemas, and is not a full JSON Schema validator for the document. It checks structure and references; pair it with a contract test that validates real responses.

Other tools

All tools · Getting started guide · All 55 mock REST APIs

Last updated