跳至主要內容

JSON Schema 校驗器

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

校驗錯誤

工具介紹

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

支援的欄位

  • 類型檢查: stringnumberintegerbooleannullarrayobject,或類型陣列。
  • 物件: requiredpropertiesadditionalPropertiespatternProperties
  • 陣列: items (單一 schema 或元組)、minItemsmaxItems
  • 字串: minLengthmaxLengthpatternformat (email、uri、uuid、date、date-time、ipv4、ipv6、hostname)。
  • 數字: minimummaximumexclusiveMinimumexclusiveMaximummultipleOf
  • 組合: oneOfanyOfallOfnotif/then/else
  • 常數: enumconst
  • 引用: $ref 本地 #/definitions/... 路徑。

隱私

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