【发布时间】:2016-11-07 08:41:35
【问题描述】:
这是我的要求:当 num==0 时,需要 a;当 num==1 时,需要 b。
{
"type": "object",
"properties": {
"num": { "type": "integer" },
"a": { "type": "string" },
"b": { "type": "string" }
}
"required": [ "num" ]
}
【问题讨论】:
-
我还没有找到值依赖的解决方案。
标签: jsonschema