{
    "title": "jobs (permant part)",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.job.JobsP",
    "type": "object",
    "required": [
        "deliveryDate",
        "jobs"
    ],
    "properties": {
        "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"
        },
        "jobs": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.job.JobP",
                "type": "object",
                "oneOf": [
                    {
                        "description": "as child of nodes only path is required and processClass is optional",
                        "required": [
                            "path"
                        ]
                    },
                    {
                        "description": "compact=true then ONLY required fields are responded and title, processClass are optional",
                        "required": [
                            "surveyDate",
                            "path",
                            "name",
                            "isOrderJob",
                            "isShellJob",
                            "usedInJobChains",
                            "estimatedDuration",
                            "maxTasks",
                            "hasDescription"
                        ]
                    }
                ],
                "properties": {
                    "surveyDate": {
                        "description": "Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ",
                        "type": "string",
                        "format": "date-time"
                    },
                    "path": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "isOrderJob": {
                        "type": "boolean"
                    },
                    "isShellJob": {
                        "type": "boolean"
                    },
                    "name": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "estimatedDuration": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "processClass": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "maxTasks": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "criticality": {
                        "type": "string",
                        "default": "normal"
                    },
                    "locks": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.joc.model.job.LockUseP",
                            "type": "object",
                            "required": [
                                "path"
                            ],
                            "properties": {
                                "path": {
                                    "description": "absolute path based on live folder of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                                    "maxLength": 255
                                }
                            }
                        }
                    },
                    "usedInJobChains": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "jobChains": {
                        "description": "Only relevant for order jobs when called /jobs/p/... or job/p/...",
                        "type": "array",
                        "items": {
                            "description": "absolute path based on live folder of a JobScheduler object.",
                            "type": "string",
                            "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                            "maxLength": 255
                        }
                    },
                    "documentation": {
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255
                    },
                    "configurationDate": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    }
                }
            }
        }
    }
}