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 생성
From sample
Objects, arrays, strings, numbers, booleans, null.
draft 2020-12
$schema + title + properties + required.
Name field
Sets schema.title.
Pairs with Validator
Generate here, check instances there.
Not Codegen title
Languages stay on Code Generator.
Local
Sample never uploaded.
How to use
-
1
Paste a JSON sample.
-
2
Set the schema title if needed.
-
3
Copy the generated schema.
-
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.