1. Home
  2. Developer
  3. OpenAPI Viewer & Validator

OpenAPI Viewer & Validator

Lint OpenAPI/Swagger YAML or JSON offline with interactive docs, cURL, and TS export.

Runs in your browser · No upload
0 errors0 warnings4 endpoints5 schemas

All parsing, $ref linting, and doc/type generation run locally in your browser with zero network calls.

Toolulah Store API 1.2.0

OpenAPI 3.1.0 · https://api.example.com/v1

Sample OpenAPI 3.1 specification demonstrating product catalog and order endpoints.

Products

Parameters

NameInTypeRequired
categoryquerystring-
limitqueryinteger-

Responses

200Product list returned
[
  {
    "name": "Wireless Keyboard",
    "price": 79.99,
    "inStock": true,
    "id": "prod_101",
    "createdAt": "2026-05-01T09:00:00Z"
  }
]
curl -X GET "https://api.example.com/v1/products?category=electronics&limit=20"

Orders

What Is OpenAPI Viewer & Validator?

OpenAPI Viewer & Validator is a 100% offline browser workspace for inspecting, linting, and documenting OpenAPI 3.0 / 3.1 and Swagger 2.0 YAML or JSON specifications without installing Swagger Editor or uploading private internal API definitions to a cloud server.

Every YAML/JSON parse, cycle-safe local $ref lookup, structural lint rule, example payload synthesis, cURL/fetch snippet, and Markdown/TypeScript export runs strictly in browser memory with zero network calls.

Key Features and Workflow

  1. Paste YAML/JSON or Drop a Spec File: Drop any .yaml, .yml, or .json file (up to 5 MB) or paste your specification into the editor. Click Sample OpenAPI 3.1 to explore a complete multi-tag API, or click Lint Error Demo to see broken $ref, duplicate operationId, missing path parameter, and invalid status code diagnostics immediately.
  2. Interactive Endpoint Explorer: Filter tag-grouped endpoints by keyword (path, summary, tag, operationId) and HTTP method (GET, POST, PUT, PATCH, DELETE). Expand any operation to inspect merged path/operation parameters, auto-generated request and response example JSON bodies, and ready-to-copy cURL and JavaScript fetch snippets.
  3. YAML/JSON Format Switching and Local Drafts: Convert between clean YAML and formatted JSON in one click, and store frequently referenced specs in your browser’s local IndexedDB storage (clearing drafts removes only this tool’s saved specs).

Built-In Structural Linter Checks

The Linter tab scans your entire document and reports exact JSON/YAML paths for common contract bugs before they break client codegen:

  • Spec Version & Metadata: Verifies valid openapi (3.0.x/3.1.x) or swagger: "2.0" version declarations plus info.title and info.version.
  • Cycle-Safe Local $ref Integrity: Resolves every #/components/... or #/definitions/... JSON Pointer with circular-reference protection and flags unresolved local references (external remote $ref URLs are flagged as offline warnings and never fetched).
  • Duplicate operationId Detection: Catches conflicting operationId names across endpoints.
  • Path Parameter Consistency: Flags undeclared {param} template variables and path parameters missing required: true.
  • Responses & Status Codes: Flags empty responses objects and invalid HTTP status codes outside 100~599, 1XX~5XX, or default.

Export Markdown Docs and TypeScript Interfaces

Switch to the TS & Markdown tab or click the top download buttons to generate clean developer artifacts locally:

  • TypeScript Types (.types.ts): Converts components.schemas (or Swagger 2.0 definitions) into idiomatic export interface and export type definitions supporting $ref, arrays, enums, oneOf/anyOf unions, allOf intersections, nullable, and optional fields.
  • Markdown Reference (.api.md): Generates tag-grouped Markdown documentation with parameter tables, JSON request examples, and response status summaries ready for GitHub READMEs or team wikis.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.