JSON Schema验证工具

验证JSON数据是否符合JSON Schema规范

JSON Schema定义

JSON数据

验证结果

JSON Schema基本语法

基本类型

  • string - 字符串类型
  • number - 数字类型
  • integer - 整数类型
  • boolean - 布尔类型
  • null - 空值类型
  • array - 数组类型
  • object - 对象类型

常用关键字

  • title - 标题
  • description - 描述
  • type - 数据类型
  • properties - 对象属性
  • required - 必选属性
  • minimum/maximum - 数值范围
  • minLength/maxLength - 字符串长度范围
  • enum - 枚举值