OpenAPI Validator

Validate OpenAPI/Swagger specification documents.

Check an OpenAPI (Swagger) document for common mistakes. Paste YAML or JSON for OpenAPI 3.0, 3.1 or 3.2, and the validator reports errors and warnings with their path in the document: missing info, title or version, paths that don't start with /, unknown methods, operations without responses, invalid response codes, duplicate operationIds, and path parameters like {petId} that aren't declared. It's a quick structural check, not a full schema validation.

Common use cases

  • Catch mistakes in an API spec before publishing docs
  • Find duplicate operationIds that break code generators
  • Review a teammate's spec change

How to use

  1. Paste the OpenAPI document as YAML or JSON.
  2. Read the errors and warnings.
  3. Fix them and check again.

FAQ

Does it validate request and response schemas?

No. It checks the document's structure. Use a full validator such as Spectral or Redocly in your build for complete checks.

Can I convert between YAML and JSON?

Yes, with the YAML to Swagger JSON and Swagger JSON to YAML converters.