{
    "title": "fabric info",
    "$schema": "http://json-schema.org/draft-06/schema#",
    "type": "object",
    "additionalProperties": false,
    "required": [
        "fabric_fq_name",
        "role_assignments"
    ],
    "properties": {
        "fabric_fq_name": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "role_assignments": {
            "type": "array",
            "minItems": 0,
            "description": "Fabric device role assignments",
            "items": {
                "type": "object",
                "properties": {
                    "device_fq_name": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "physical_role": {
                        "type": "string",
                        "enum": [
                            "leaf",
                            "spine",
                            "pnf"
                        ]
                    },
                    "routing_switching_roles": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "CRB"
                            ]
                        }
                    }
                }
            }
        }
    }
}