Skip to main content
>_devtools

JSON Schema to OpenAPI Schema

Prepare a JSON Schema for the OpenAPI 3.1 base dialect or convert the checked OpenAPI 3.0 Schema Object subset.

How to use it

Prepare a JSON Schema for the OpenAPI 3.1 base dialect or convert the checked OpenAPI 3.0 Schema Object subset. Paste a JSON Schema object and choose the OpenAPI 3.0 or 3.1 target dialect.

Example

Input: {"type":"string"}
Output: {"type":"string","$schema":"https://spec.openapis.org/oas/3.1/dialect/base"}

Limits and behavior

  • The OpenAPI 3.0 target accepts only its supported Schema Object subset.
  • JSON input and output have bounded size and nesting.