{
    "title": "documentation",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.docu.DeployDocumentations",
    "type": "object",
    "properties": {
        "controllerId": {
            "type": "string",
            "pattern": "^[^/\\<>?:\"|*]*$",
            "maxLength": 100
        },
        "documentations": {
            "type": "array",
            "items": {
                "type": "object",
                "javaType": "com.sos.joc.model.docu.DeployDocumentation",
                "properties": {
                    "documentation": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "objects": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.common.JobSchedulerObject",
                            "type": "object",
                            "properties": {
                                "type": {
                                    "javaType": "com.sos.joc.model.common.JobSchedulerObjectType",
                                    "type": "string",
                                    "enum": [
                                        "INVENTORY",
                                        "WORKFLOW",
                                        "JOB",
                                        "JOBCLASS",
                                        "AGENTCLUSTER",
                                        "LOCK",
                                        "JUNCTION",
                                        "ORDER",
                                        "CALENDAR",
                                        "CONTROLLER",
                                        "DOCUMENTATION",
                                        "FOLDER",
                                        "WORKINGDAYSCALENDAR",
                                        "NONWORKINGDAYSCALENDAR",
                                        "OTHER"
                                    ]
                                },
                                "path": {
                                    "description": "absolute path of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                                    "maxLength": 255,
                                    "minLength": 1
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}