{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/weaveFabricNetwork.json",
    "title": "Weave Fabric Network configuration",
    "$$target": "weaveFabricNetwork.json",
    "description": "Describes the configuration of a Weave network fabric.",
    "properties": {
        "network": {
            "description": "Network CIDR for pods in the fabric",
            "format": "cidr",
            "type": "string"
        },
        "nodeConnectionLimit": {
            "description": "Maximum number of connection made per node. A cluster size of N would have each node making (N-1) connections",
            "type": "number",
            "minimum": 1,
            "default": 30
        }
    },
    "required": [
        "network",
        "nodeConnectionLimit"
    ],
    "additionalProperties": false,
    "type": "object"
}