$schema ヘッダーを含める — 先頭に draft-07 宣言を付け、バリデーターがスキーマの方言を知られるようにします。例:"$schema": "http://json-schema.org/draft-07/schema#"
required キーを付ける — サンプル JSON で見つかったすべてのキーを required リストに加えます。例:"required": ["name", "price", "inStock"]
小さな値の集合を enum に畳む — スカラー配列に 2~8 個の一意値があるとき、項目型を enum に狭めます。例:"tags": ["sale", "new", "sale"] → "tags": {"type": "array", "items": {"type": "string", "enum": ["sale", "new"]}}
一般的な文字列形式を検出 — ISO 日付、日時、UUID、メール、URL を認識し format を追加します。例:"createdAt": {"type": "string", "format": "date-time"}