Development and data

How to pre-check an OpenAPI document in JSON

An initial check can reveal missing fields before reviewing fictional API documentation.

Before you start

Text is processed in the browser. Consider the content before using it and read the privacy policy.

Privacy

How to use it

  1. Enter {"openapi":"3.1.0", "info":{"title":"Example","version":"1.0"}, "paths":{}}.

  2. Run the check and review the path and schema counts.

  3. Remove info and test again to see the error.

OpenAPI Pre-check

Worked example

The example contains a version, basic information and empty paths; the pre-check finds zero paths and zero schemas.

Result: basic check passed; 0 paths and 0 schemas.

OpenAPI 3.1: OpenAPI Object

Limits and checks

The tool accepts JSON, not YAML, and checks only part of the OpenAPI 3.0/3.1 structure. It does not apply the full official schema, resolve references or validate an API’s behavior. Passing does not prove conformance.

Next step

To review the document’s syntax, use JSON Formatter.

How to format and check JSON before sharing it
Back to the blog