相互変換
ローカル実行 · アップロードゼロ

JSON Schema 検証

draft-07 / 2020-12 サブセット · ローカル

YAML 変換

準備完了

元の入力

                                
                            
解析出力

                                
固定高さ、長いコードは枠内スクロール

ABOUT

About JSON Schema 検証

Check whether a JSON document matches a JSON Schema: types, required properties, extra keys, arrays, enum and const. This is structural validation, not syntax checking.

Paste the instance on the left and the schema on the right. Errors list a JSON Pointer path. $ref and format are not evaluated in this first version.

DEEP DIVE

JSON Schema 検証

API contracts and agent tool parameters are usually JSON Schema. Formatter only tells you the text is valid JSON. This page tells you whether the object fits the contract.

Use Code Generator when you need a schema from a sample. Come back here to test instances against that schema. Blog notes on why agents need Schema stay on the blog, not in this title.

FEATURES

JSON Schema 検証

01

Instance + Schema

Two panes: JSON on the left, Schema on the right.

02

Path-listed errors

required, type, additionalProperties, items, enum, const, min/max.

03

Draft subset

draft-07 / 2020-12 keywords we implement; no $ref hop yet.

04

Local only

Instance and schema never leave the browser.

05

Not a syntax checker

Broken JSON still belongs on Formatter / Auto Fix.

06

Pairs with Codegen

Generate a schema there, validate instances here.

HOW TO USE

How to use

  1. 1

    Paste a JSON instance (left) and a JSON Schema (right).

  2. 2

    Click Sample for the fictional A-1042 object.

  3. 3

    Read valid / errorCount / errors[].path.

  4. 4

    Fix the instance or the schema, then run again.

FAQ

FAQ

Is this a JSON syntax validator?

No. If parse fails, use Formatter. This page checks structure against a schema.

Which drafts are covered?

A shared subset of draft-07 and 2020-12: type, properties, required, additionalProperties, items, enum, const, min/max lengths and numbers.

Do you follow $ref?

Not in this version. Inline the referenced subschema or wait for a later pass.

Is format (email, uri) checked?

No. format is annotation-only here.

Is data uploaded?

No. Validation runs in your browser.

Where do I generate a schema?

Code Generator still has a Schema button; its title stays TypeScript/Java/Go. A dedicated generator page is a later phase.

クリップボードにコピーしました