{
    "name": "Network Partition Policy",
    "options": {
        "disable_collapse": true,
        "disable_properties": true
    },
    "properties": {
        "_id": {
            "id": "root/id",
            "title": "Network Partition Id",
            "type": "string"
        },
        "partitions": {
            "_id": "root/partitions",
            "format": "tabs",
            "items": {
                "_id": "root/partitions/0",
                "properties": {
                    "_id": {
                        "id": "root/partitions/0/id",
                        "title": "Partition Id",
                        "type": "string"
                    },
                    "property": {
                        "_id": "root/partitions/0/property",
                        "format": "tabs",
                        "items": {
                            "_id": "root/partitions/0/property/0",
                            "properties": {
                                "name": {
                                    "_id": "root/partitions/0/property/0/name",
                                    "title": "Name",
                                    "type": "string"
                                },
                                "value": {
                                    "_id": "root/partitions/0/property/0/value",
                                    "title": "Value",
                                    "type": "string"
                                }
                            },
                            "title": "Property",
                            "type": "object"
                        },
                        "title": "Property",
                        "type": "array"
                    }
                },
                "title": "Partition",
                "type": "object"
            },
            "title": "Partitions",
            "type": "array"
        },
        "properties": {
            "_id": "root/properties",
            "format": "tabs",
            "items": {
                "_id": "root/properties/0",
                "properties": {
                    "name": {
                        "_id": "root/properties/0/name",
                        "title": "Name",
                        "type": "string"
                    },
                    "value": {
                        "_id": "root/properties/0/value",
                        "title": "Value",
                        "type": "string"
                    }
                },
                "title": "Property",
                "type": "object"
            },
            "title": "Properties",
            "type": "array"
        },
        "provider": {
            "_id": "root/provider",
            "enum": [
                "mock",
                "ec2",
                "openstack",
                "kubernetes",
                "gce"
            ],
            "title": "Network Partition provider",
            "type": "string"
        }
    },
    "required": [
        "id",
        "partitions",
        "provider"
    ],
    "title": "Network Partition Definition",
    "type": "object"
}