校验值的类型
json:
{
"success": true,
"code": 10000,
"message": "操作成功",
"data": {
"name": "tom",
"age": 18
}
}
json schema:
{
"type": "object",
"property": {
"success": {
"type": "bollean"
},
"code": {
"type": "integer"
},
"message": {
"type": "string"
},
"data": {
"type": "object",
"property": {
"name": {
"type": "string"
},
"age": {
"type": "integer"
}
}
}
}
}
校验值等于
json:
{
"code":1000
}
schema:
{
"type":"object",
"properties":{
"code":{
"const":1000
}
}
}