What is OpenAPI?

OpenAPI is the standard way to describe a REST API in a single JSON or YAML file. It lists the endpoints, their parameters, the data you send and the responses you get back, so people and tools can use an API without reading its code. It grew out of Swagger, and versions 3.0 and 3.1 are the ones most APIs use today. Version 3.1 also supports full JSON Schema.

Tool description

This tool turns an OpenAPI specification into documentation you can browse. Paste the JSON or YAML, or open the file, and you see the API's title, servers and endpoints grouped by tag. Open an endpoint to read its parameters, request body and responses, with a schema tree and an example for each. The tool checks the spec as well and tells you whether it's valid, or lists the problems it found. Older Swagger 2.0 files work too.

Features

  • Docs for OpenAPI 3.0, OpenAPI 3.1 and Swagger 2.0, from JSON or YAML
  • A validity check with readable problem messages
  • Endpoints by tag with a filter, and deprecated ones clearly marked
  • Schema trees that understand allOf, oneOf, anyOf and schemas that contain themselves
  • Examples built from the spec's own examples, defaults and types

How it works

Everything stays in your browser. The text is parsed as JSON or YAML, and Swagger Parser checks it against the official OpenAPI schema for its version, along with rules like unique operation IDs. Local references such as #/components/schemas/Book are followed as you open them. A schema that contains itself, like a shelf that holds smaller shelves, is marked where it repeats. References to other files or web addresses aren't loaded.

OpenAPI 3.2 documents still show as docs, but the check doesn't know that version yet, so the tool says it couldn't check them.

Tips

  • Server addresses with variables like {region} are filled in with their default values, so you can copy them right away.
  • The docs keep showing the last version that parsed while you edit, even when the text is half typed.
  • Big specs stay quick, because an endpoint's details are only built when you open it.
  • Use Expand all to read every endpoint at once, then the filter to narrow the list down.