변환
로컬 실행 · 업로드 없음

JSON Schema 생성

JSON → JSON Schema · draft 2020-12 · Local

YAML 변환

준비됨

원본 입력

                                
                            
파싱 출력

                                
고정 높이, 긴 코드는 영역 내 스크롤

ABOUT

About JSON Schema 생성

Turn a JSON sample into a draft 2020-12 schema: types, properties, required. Validate instances on Schema Validator.

Code Generator’s title still lists TypeScript / Java / Go. Use that page for types; use this page when the search intent is JSON Schema.

Agent tools and OpenAPI-style contracts start from an example payload. Inferring a schema here is faster than writing it by hand.

$ref is not synthesized. Arrays take the first element as the item shape.

JSON Schema 생성

01

From sample

Objects, arrays, strings, numbers, booleans, null.

02

draft 2020-12

$schema + title + properties + required.

03

Name field

Sets schema.title.

04

Pairs with Validator

Generate here, check instances there.

05

Not Codegen title

Languages stay on Code Generator.

06

Local

Sample never uploaded.

How to use

  1. 1

    Paste a JSON sample.

  2. 2

    Set the schema title if needed.

  3. 3

    Copy the generated schema.

  4. 4

    Open Schema Validator to test instances.

FAQ

Does this replace Code Generator?

No. Code Generator still emits TS/Java/Go. This page is JSON Schema only.

Which draft?

2020-12 $schema URI, same inference as the in-page Schema button.

Do you emit $ref?

No.

Is data uploaded?

No.

Where do I validate?

JSON Schema Validator.

Why a separate page?

So “JSON to JSON Schema” does not sit in the TypeScript/Java/Go title.

클립보드에 복사됨