{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "description": "ParaDrop chute VLAN interface configuration",
    "type": "object",
    "properties": {
        "type": {
            "type": "string",
            "description": "Network type, must be vlan",
            "pattern": "wifi"
        },
        "intfName": {
            "type": "string",
            "description": "Name of the network interface inside the chute",
            "pattern": "[a-z][a-z0-9]*"
        },
        "vlan_id": {
            "type": "integer",
            "description": "VLAN tag for traffic to and from the chute",
            "minimum": 1,
            "maxmimum": 4094
        },
        "dhcp": {
            "description": "DHCP server configuration",
            "type": "object",
            "properties": {
                "leasetime": {
                    "type": "string",
                    "description": "Duration of client leases, e.g. 2h"
                },
                "limit": {
                    "type": "integer",
                    "description": "Size of address range beginning at start value.",
                    "minimum": 1
                },
                "start": {
                    "type": "integer",
                    "description": "Starting offset for address assignment.",
                    "minimum": 0
                },
                "relay": {
                    "type": "string",
                    "description": "Address of a DHCP server if this server will be acting as a relay agent (experimental)"
                }
            }
        },
        "ipv4_network": {
            "type": "string",
            "description": "Request specific IP network in slash notation"
        },
        "dns": {
            "type": "array",
            "description": "List of DNS servers to advertise to connected clients",
            "items": {
                "type": "string"
            }
        }
    },
    "required": [
        "type",
        "intfName",
        "vlan_id"
    ]
}