{
    "title": "version response with agent and controller versions",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.joc.VersionResponse",
    "type": "object",
    "required": [
        "version"
    ],
    "properties": {
        "controllerVersions": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.joc.ControllerVersion",
                "type": "object",
                "required": [
                    "controllerId",
                    "uri",
                    "version"
                ],
                "properties": {
                    "controllerId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "uri": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "version": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "compatibility": {
                        "javaType": "com.sos.joc.model.joc.CompatibilityLevel",
                        "type": "string",
                        "enum": [
                            "COMPATIBLE",
                            "PARTIALLY_COMPATIBLE",
                            "NOT_COMPATIBLE"
                        ],
                        "javaEnumNames": [
                            "COMPATIBLE",
                            "PARTIALLY_COMPATIBLE",
                            "NOT_COMPATIBLE"
                        ]
                    }
                }
            }
        },
        "agentVersions": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.joc.AgentVersion",
                "type": "object",
                "required": [
                    "agentId",
                    "uri",
                    "version"
                ],
                "properties": {
                    "agentId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "subagentId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "uri": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "version": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "compatibility": {
                        "javaType": "com.sos.joc.model.joc.CompatibilityLevel",
                        "type": "string",
                        "enum": [
                            "COMPATIBLE",
                            "PARTIALLY_COMPATIBLE",
                            "NOT_COMPATIBLE"
                        ],
                        "javaEnumNames": [
                            "COMPATIBLE",
                            "PARTIALLY_COMPATIBLE",
                            "NOT_COMPATIBLE"
                        ]
                    }
                }
            }
        },
        "jocVersion": {
            "type": "string"
        }
    }
}