add basic schema with all properties

This commit is contained in:
Samuel Lorch 2023-10-10 19:57:04 +02:00
parent 5483f7f39d
commit 8b23444815
26 changed files with 560 additions and 57 deletions

View file

@ -0,0 +1,36 @@
{
"$id": "https://nfsense.net/schema/config/config.schema.json",
"title": "Config",
"type": "object",
"properties": {
"config_version": {
"type": "number",
"const": 1
},
"firewall": {
"description": "System Settings",
"$ref": "https://nfsense.net/schema/firewall/firewall.schema.json"
},
"object": {
"description": "Object Settings",
"$ref": "https://nfsense.net/schema/object/object.schema.json"
},
"network": {
"description": "Network Settings",
"$ref": "https://nfsense.net/schema/network/network.schema.json"
},
"service": {
"description": "Service Settings",
"$ref": "https://nfsense.net/schema/service/service.schema.json"
},
"vpn": {
"description": "VPN Settings",
"$ref": "https://nfsense.net/schema/vpn/vpn.schema.json"
},
"system": {
"description": "System Settings",
"$ref": "https://nfsense.net/schema/system/system.schema.json"
}
},
"required": ["config_version", "firewall", "object", "network", "service", "vpn", "system"]
}