OpenAPI specification
Structure onlyThis check looks at required OAS 3.0 object shape (openapi, info, paths). It does not run Spectral or Redocly rules. It does not resolve $ref. It does not check OAS 3.1 security schemes. An empty paths object is a structure warning.
How to check OpenAPI structure
- 1
Paste or upload your spec
Enter your OpenAPI or Swagger specification into the editor. You can paste JSON or YAML directly, or click Upload File to load an.json.yaml, or.yml file from your device. - 2
Load a sample if needed
Click Load Example to fill an OpenAPI 3.0 document with openapi, info, and paths. Use it to see the required object shape. - 3
Run the structure check
Press Check structure. The tool parses JSON or simple YAML and reports missing required fields, path format, and empty paths. It does not resolve $ref or run Spectral rules. - 4
Review errors and warnings
Errors mean a required object field is missing. Warnings include empty paths and missing operationId. Fix the document and run the check again.
Common Use Cases
API Design-First Workflow
CI/CD Pipeline Pre-Check
Third-Party API Auditing
Swagger 2.0 to OpenAPI 3.x Migration
Why use OpenAPI structure check?
OpenAPI structure check reads an OpenAPI 3.x or Swagger 2.0 document in your browser. It checks required object fields: openapi (or swagger), info.title, info.version, and paths. Empty paths {} is a structure warning. The check does not run Spectral or Redocly rules. It does not resolve $ref. It does not apply OAS 3.1 security-scheme rules.
Use this page for a first shape check before you generate docs or client code. For a full lint, use Spectral or Redocly. For YAML indent problems, use the YAML Validator. The Swagger to OpenAPI Converter upgrades Swagger 2.0 files. Then run this structure check again.
After the shape is present, generate docs with the API Docs Generator, or check JSON Schema with the JSON Schema Validator. Processing stays in this browser. The page does not upload your specification.
How It Compares
Spectral and Redocly run rule sets, resolve $ref, and check many OAS details. This page does not replace them. It checks required OAS 3.0 object shape in the browser so you can see missing openapi, info, or paths fields at once.
Stoplight Studio and SwaggerHub combine editors with lint. This page is a free shape check with no account. For JSON Schema, use the JSON Schema Validator. For YAML syntax, use the YAML Validator.