{
    "title": "configuration",
    "id": "schemas/common/configuration",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.common.Configuration200",
    "type": "object",
    "required": [
        "deliveryDate",
        "configuration"
    ],
    "properties": {
        "deliveryDate": {
            "id": "schemas/common/deliveryDate",
            "description": "Current date of the JOC server/REST service. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
            "type": "string",
            "format": "date-time"
        },
        "configuration": {
            "javaType": "com.sos.joc.model.common.Configuration",
            "type": "object",
            "required": [
                "surveyDate",
                "path",
                "configurationDate",
                "content"
            ],
            "properties": {
                "surveyDate": {
                    "id": "schemas/common/surveyDate_v",
                    "description": "Current date of the JobScheduler Master/Agent. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                    "type": "string",
                    "format": "date-time"
                },
                "path": {
                    "id": "schemas/common/path",
                    "description": "absolute path based on live folder of a JobScheduler object.",
                    "type": "string",
                    "pattern": "/([^/]+/)*[^/]+"
                },
                "type": {
                    "id": "schemas/common/type",
                    "javaType": "com.sos.joc.model.common.JobSchedulerObjectType",
                    "type": "string",
                    "enum": [
                        "JOB",
                        "JOBCHAIN",
                        "ORDER",
                        "PROCESSCLASS",
                        "AGENTCLUSTER",
                        "LOCK",
                        "SCHEDULE",
                        "FOLDER",
                        "JOBSCHEDULER",
                        "OTHER"
                    ]
                },
                "configurationDate": {
                    "id": "schemas/common/timestamp",
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "content": {
                    "id": "schemas/common/configurationContent",
                    "javaType": "com.sos.joc.model.common.ConfigurationContent",
                    "type": "object",
                    "description": "A parameter can specify if the content is xml or html. Either 'xml' or 'html' is required",
                    "oneOf": [
                        {
                            "required": [
                                "xml"
                            ]
                        },
                        {
                            "required": [
                                "html"
                            ]
                        }
                    ],
                    "properties": {
                        "xml": {
                            "type": "string"
                        },
                        "html": {
                            "type": "string"
                        }
                    }
                }
            }
        }
    }
}