Vai al contenuto principale
CuteJSON
↑↓ Naviga Enter Seleziona Esc Chiudi

OpenAPI Helpers

Turn a JSON document into an OpenAPI schema, build an example from a schema, or check an example against one.

Torna a tutti gli strumenti

Scorciatoie da tastiera

Funzionano dove l'azione corrispondente esiste in questa pagina.

Apri la tavolozza comandi
Ctrl/Cmd + K
Esegui l'azione principale
Ctrl/Cmd + Enter
Formatta
Ctrl/Cmd + Shift + F
Minifica
Ctrl/Cmd + Shift + M
Copia output
Ctrl/Cmd + Shift + C
Apri file
Ctrl/Cmd + Shift + O
Scarica output
Ctrl/Cmd + S
Chiudi questa finestra
Esc
Apri questa finestra
F1 / ?

Dati locali

Tutto qui sotto e memorizzato solo in questo browser.

Bozze non salvate
Strumenti con opzioni ricordate

File aperti di recente

    Nessun file aperto ancora.

    Condividi via link

    Il contenuto e impacchettato nella parte dopo il #.

    Condivide la prima input in questa pagina.

    Niente da condividere ancora.

    JSON document

    Carica da un URL

    Recupera l'URL dal tuo browser.

    Output

    Il risultato appare qui.

    Funziona interamente nel tuo browser.

    Su questo strumento

    Three things people do with an OpenAPI schema, on one page. "JSON to schema" infers a schema the same way the JSON Schema Generator does, then writes it in whichever OpenAPI dialect you pick: 3.1, where a schema object is JSON Schema itself, or 3.0, which has no type array and spells a nullable field as a single type plus nullable: true instead. "Schema to example" builds one JSON value that satisfies a schema, preferring an example or default the schema already states over inventing one. "Validate example" checks a document against a schema and lists every keyword it failed, resolving OpenAPI 3.0's nullable keyword first so a 3.0 schema is checked correctly rather than against JSON Schema's own type array rules. All three understand local $ref, allOf, anyOf and oneOf.

    Come usare

    1. Pick what you want: JSON to schema, schema to example, or validate an example.
    2. Paste the input the mode asks for, or load the sample.
    3. Press the button. Switch the OpenAPI version any time to see the same input written the other dialect's way.