{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Some definitions that are used by several descriptors.",
    "memory_units": {
        "enum": [
            "B",
            "kB",
            "KiB",
            "MB",
            "MiB",
            "GB",
            "GiB",
            "TB",
            "TiB",
            "PT",
            "PiT"
        ]
    },
    "bandwidth_units": {
        "enum": [
            "bps",
            "kbps",
            "Mbps",
            "Gbps",
            "Tbps"
        ]
    },
    "images_formats": {
        "enum": [
            "raw",
            "vhd",
            "vmdk",
            "vdi",
            "iso",
            "qcow2",
            "docker",
            "ova",
            "ovf",
            "bare"
        ]
    },
    "interfaces": {
        "enum": [
            "interface"
        ]
    },
    "properties": {
        "memory_units": {
            "$ref": "#/memory_units"
        },
        "bandwidth_units": {
            "$ref": "#/bandwidth_units"
        },
        "images_formats": {
            "$ref": "#/images_formats"
        },
        "interfaces": {
            "$ref": "#/interfaces"
        }
    },
    "required": [
        "memory_units",
        "bandwidth_units",
        "images_formats",
        "interfaces"
    ]
}