{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "create_wireguard_interface",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^\\S+$",
      "description": "WireGuard interface name to create, e.g. 'wireguard-internal' (no spaces)."
    },
    "listen_port": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "private_key": {
      "type": "string"
    },
    "mtu": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "default": false,
      "type": "boolean"
    }
  },
  "required": ["name", "disabled"],
  "additionalProperties": false
}
