rougail-output-doc/tests/results/test/24_7validators_variable_optional.json

82 lines
No EOL
1.5 KiB
JSON

{
"general": {
"type": "family",
"informations": {
"paths": [
"general"
],
"names": [
"general"
],
"description": "a family",
"properties": [
{
"type": "mode",
"name": "basic"
}
]
},
"children": {
"general.int": {
"type": "variable",
"properties": [
{
"type": "type",
"name": "number"
},
{
"type": "mode",
"name": "basic"
},
{
"type": "property",
"name": "mandatory"
}
],
"validators": [
"int and int2 must be different.",
"int and int3 must be different."
],
"paths": [
"general.int"
],
"names": [
"int"
],
"descriptions": [
"A first number."
],
"examples": [
5
]
},
"general.int2": {
"type": "variable",
"default": 1,
"properties": [
{
"type": "type",
"name": "number"
},
{
"type": "mode",
"name": "standard"
},
{
"type": "property",
"name": "mandatory"
}
],
"paths": [
"general.int2"
],
"names": [
"int2"
],
"descriptions": [
"A second number."
]
}
}
}
}