Add JSON schema support to the Playground
Author: SoviutCreated Sep 19, 2026Updated Sep 19, 2026
Labelsdocumentationhelp wanted
Description
The Orval Playground only supports YAML schemas. It would be nice if JSON support was added since a lot of API frameworks like FastAPI generate a /openapi.json route by default. It would be nice to be able to take that JSON and dump it in the playground unmodified, to prove it can handle your schema.
Current behavior
The schema only supports YAML.
Proposed behavior
The schema should also support JSON.
Proposed solution
We could either
- After the "Choose an Example" select we could add another select to choose the schema language.
- Keep a single select but duplicate each example, one for YAML and one for JSON. Each would have a different input target in the
orval.config.jspanel.
Source: orval-labs/orval