JSON Schema 实时校验 逐字段反馈 严格模式 预设模板

提示

JSON Schema参数定义
JSON 数据待校验
自动校验
0
总字段
0
校验通过
0
校验失败
0
警告提示
校验结果
请输入 Schema 和数据后开始校验
等待校验...

Schema 语法参考(支持的校验规则)

"type": "string"
类型:string/number/integer/boolean/array/object/null
"required": ["name"]
必填字段列表(对象顶层)
"pattern": "^\\d{11}$"
正则匹配(仅 string)
"enum": [1, 2, 3]
枚举值限定
"minimum": 0
最小值(number/integer)
"maximum": 100
最大值(number/integer)
"minLength": 2
最小长度(string)
"maxLength": 50
最大长度(string)
"minItems": 1
最少数组元素
"maxItems": 10
最多数组元素
"format": "email"
格式:email/url/date/time/ip/uuid
"properties": {}
子属性定义(嵌套递归)
"items": {}
数组元素 Schema 定义
"additionalProperties": false
禁止额外属性
"nullable": true
允许 null 值