我在测试JSON模式时收到错误“对象中缺少必需的属性”,但我可以看到对象中存在GroupName和GroupID字段。
JSON架构如下所示:
{
"id": "http://localhost:8000/schema.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Store Schema",
"type": "object",
"properties": {
"GroupName": {
"description": "Group Name",
"type": "string"
},
"GroupID": {
"description": "Group ID",
"type": "string",
"pattern": "[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"
}
},
"required": ["GroupName","GroupID"],
"additionalProperties": false
}
由于