dokytree/samples/it_v2/schemas_builder/parts/interfaces.json

63 lines
960 B
JSON
Raw Normal View History

2024-10-31 17:34:57 +00:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"interfaces": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"anyOf": [
{"type": "string"},
{"enum": [
"''",
"'LAN'",
"'WIFI'",
"'WAN'",
"'VPN'"
]}
]
},
"ip": {
"anyOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"mask": {
"anyOf": [
{"type": "string"},
{"enum": [
"''",
"'255.255.255.0'",
"'255.255.0.0'",
"'255.0.0.0'"
]}
]
},
"gw": {
"anyOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
},
"dns": {
"type": "array",
"items": {
"anyOf": [
{"type": "string"},
{"enum": [
"''"
]}
]
}
}
}
}
}
}
}