Ste*_*han 8 json json.net jsonschema
谁能给我一个如何使用patternProperties项为json架构的例子?
"Example" :
"type" : "object",
"patternProperties" :
{
<how do I use this>
}
Run Code Online (Sandbox Code Playgroud)
我想在json文件中做的是允许任何以A开头的"Example"子项例如:
{
"Example" :
{
"Aaa" : { ...}
}
}
Run Code Online (Sandbox Code Playgroud)
patternProperties是正确的选择吗?
Bag*_*ggz 11
{
type: 'object',
patternProperties: {
'^A': {
type: 'string',
...
}
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3342 次 |
| 最近记录: |