nfsense/internal/validation/schema/vpn/wireguard_peer.schema.json

29 lines
No EOL
693 B
JSON

{
"$id": "https://nfsense.net/schema/vpn/wireguard_peer.schema.json",
"title": "Wireguard Peer",
"type": "object",
"properties": {
"public_key": {
"type": "string"
},
"preshared_key": {
"type": ["string", "null"]
},
"allowed_ips": {
"type": "array",
"items": {
"type": "string"
}
},
"endpoint": {
"type": ["string", "null"]
},
"persistent_keepalive": {
"type": ["number", "null"]
},
"comment": {
"type": "string"
}
},
"required": ["public_key", "allowed_ips"]
}