JSON schema草案4中有哪些特性是IETF生产的JSON schema草案3中没有的?
JSON schema草案4中有哪些特性是IETF生产的JSON schema草案3中没有的?
从变更日志中:
新增关键词
已删除:
功能变更:
之前
{
"type": [ "string", { "other": "schema" } ]
}
现在
{
"anyOf": [
{ "type": "string" },
{ "other": "schema" }
]
}
之前
{
"properties": {
"p": {
"type": "string",
"required": true
},
"q": {
"type": "string",
"required": true
}
}
}
现在
{
"properties": {
"p": { "type": "string" },
"q": { "type": "string" }
},
"required": [ "p", "q" ]
}
之前
{
"dependencies": { "a": "b" }
}
现在
{
"dependencies": { "a": [ "b" ] }
}