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

105 lines
No EOL
2.4 KiB
JSON

{
"rougail": {
"type": "namespace",
"informations": {
"path": "rougail",
"names": [
"rougail"
],
"description": "Rougail",
"properties": [
{
"type": "mode",
"name": "basic"
}
]
},
"children": {
"general": {
"type": "family",
"informations": {
"path": "rougail.general",
"names": [
"general"
],
"description": "A family",
"properties": [
{
"type": "mode",
"name": "basic"
}
]
},
"children": {
"int": {
"type": "variable",
"properties": [
{
"type": "type",
"name": "integer"
},
{
"type": "mode",
"name": "basic"
},
{
"type": "property",
"name": "mandatory"
}
],
"validators": {
"name": "Validators",
"values": [
"int and int2 must be different",
"int and int3 must be different"
]
},
"path": "rougail.general.int",
"names": [
"int"
],
"description": "A first integer.",
"examples": {
"name": "Example",
"values": 5
},
"gen_examples": [
5
],
"mandatory_without_value": true
},
"int2": {
"type": "variable",
"default": {
"name": "Default",
"values": 1
},
"properties": [
{
"type": "type",
"name": "integer"
},
{
"type": "mode",
"name": "standard"
},
{
"type": "property",
"name": "mandatory"
}
],
"path": "rougail.general.int2",
"names": [
"int2"
],
"description": "A second integer.",
"gen_examples": [
1
],
"mandatory_without_value": false
}
}
}
}
}
}