Pular para o conteudo principal
CuteJSON
↑↓ Navegar Enter Selecionar Esc Fechar

OpenAPI Helpers

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

Voltar para todas as ferramentas

Atalhos de teclado

Estes funcionam onde a acao correspondente existe nesta pagina.

Abrir a paleta de comandos
Ctrl/Cmd + K
Executar a acao principal
Ctrl/Cmd + Enter
Formatar
Ctrl/Cmd + Shift + F
Minimizar
Ctrl/Cmd + Shift + M
Copiar saida
Ctrl/Cmd + Shift + C
Abrir arquivo
Ctrl/Cmd + Shift + O
Baixar saida
Ctrl/Cmd + S
Fechar este dialogo
Esc
Abrir este dialogo
F1 / ?

Dados locais

Tudo abaixo e armazenado apenas neste navegador, neste dispositivo. Nada e enviado a lugar nenhum, e fechar este dialogo nao e necessario para que isso continue verdade.

Rascunhos nao salvos
Ferramentas com opcoes lembradas

Arquivos abertos recentemente

    Nenhum arquivo aberto ainda neste dispositivo.

    Compartilhar via link

    O conteudo e empacotado na parte do link apos o #, que navegadores nunca enviam a um servidor.

    Compartilha a primeira entrada nesta pagina.

    Nada para compartilhar ainda.

    JSON document

    Carregar de uma URL

    Busca a URL diretamente do seu navegador.

    Saida

    O resultado aparece aqui.

    Funciona inteiramente no seu navegador.

    Sobre esta ferramenta

    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.

    Como usar

    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.