{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Describes a patch of a network flow.",
    "properties": {
        "bandwidth": {
            "description": "Average bandwidth requirement for the flow, formatted as a number followed by kbit/s, Mbit/s, Gbit/s. NB: Values should be formatted with no fraction component if possible, using the largest unit that allows that.",
            "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]+)?[kMG]bit\\/s$",
            "type": "string"
        },
        "dscp": {
            "description": "DSCP based QoS metrics number",
            "enum": [
                "CS0",
                "CS1",
                "CS2",
                "CS3",
                "CS4",
                "CS5",
                "CS6",
                "CS7",
                "AF11",
                "AF12",
                "AF13",
                "AF21",
                "AF22",
                "AF23",
                "AF31",
                "AF32",
                "AF33",
                "AF41",
                "AF42",
                "AF43",
                "EF"
            ],
            "type": "string"
        },
        "forward_flow": {
            "description": "Flag for forwarding the flow. If false, the network should not set up the flow. Only when this flag is changed to true should the flow be sent to all receivers.",
            "type": "boolean"
        },
        "label": {
            "description": "Freeform string label for the network flow",
            "type": "string"
        },
        "profile": {
            "description": "The transmission profile of the flow.",
            "enum": [
                "constant-rate",
                "SMPTE-2110-21-narrow",
                "SMPTE-2110-21-wide",
                "unknown"
            ],
            "type": "string"
        }
    },
    "title": "Network flow with attributes that can be patched",
    "type": "object"
}
