跳至主要內容

JSON Schema 校驗器

使用 JSON Schema (draft-07 子集) 校驗任何 JSON 文件。

校驗錯誤

工具介紹

JSON Schema 校驗器 檢查 JSON 文件是否符合 JSON Schema (draft-07 子集)。所有輸入都在本地瀏覽器中驗證 — 不會發送到任何伺服器。

支援的欄位

  • 類型檢查: string、number、integer、boolean、null、array、object,或類型陣列。
  • 物件: required、properties、additionalProperties、patternProperties。
  • 陣列: items (單一 schema 或元組)、minItems、maxItems。
  • 字串: minLength、maxLength、pattern、format (email、uri、uuid、date、date-time、ipv4、ipv6、hostname)。
  • 數字: minimum、maximum、exclusiveMinimum、exclusiveMaximum、multipleOf。
  • 組合: oneOf、anyOf、allOf、not、if/then/else。
  • 常數: enum、const。
  • 引用: $ref 本地 #/definitions/... 路徑。

隱私

Schema 和資料完全在瀏覽器中處理 — 資料不會離開您的裝置。