{
    "title": "schedules (permanent part)",
    "id": "schemas/schedule/schedules_p",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.schedule.SchedulesP",
    "type": "object",
    "required": [
        "deliveryDate",
        "schedules"
    ],
    "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"
        },
        "schedules": {
            "type": "array",
            "items": {
                "id": "schemas/schedule/schedule_p",
                "javaType": "com.sos.joc.model.schedule.ScheduleP",
                "type": "object",
                "required": [
                    "surveyDate",
                    "path",
                    "name",
                    "usedByOrders",
                    "usedByJobs"
                ],
                "properties": {
                    "surveyDate": {
                        "id": "schemas/common/surveyDate_p",
                        "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": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "name": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "substitute": {
                        "id": "schemas/schedule/substitute",
                        "javaType": "com.sos.joc.model.schedule.Substitute",
                        "type": "object",
                        "required": [
                            "path",
                            "validFrom",
                            "validTo"
                        ],
                        "properties": {
                            "path": {
                                "id": "schemas/common/path",
                                "description": "absolute path based on live folder of a JobScheduler object.",
                                "type": "string",
                                "pattern": "/([^/]+/)*[^/]+"
                            },
                            "validFrom": {
                                "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"
                            },
                            "validTo": {
                                "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"
                            }
                        }
                    },
                    "substitutedBy": {
                        "type": "array",
                        "items": {
                            "id": "schemas/schedule/substitute",
                            "javaType": "com.sos.joc.model.schedule.Substitute",
                            "type": "object",
                            "required": [
                                "path",
                                "validFrom",
                                "validTo"
                            ],
                            "properties": {
                                "path": {
                                    "id": "schemas/common/path",
                                    "description": "absolute path based on live folder of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "/([^/]+/)*[^/]+"
                                },
                                "validFrom": {
                                    "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"
                                },
                                "validTo": {
                                    "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"
                                }
                            }
                        }
                    },
                    "usedByOrders": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "jobChain": {
                                    "id": "schemas/common/path",
                                    "description": "absolute path based on live folder of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "/([^/]+/)*[^/]+"
                                },
                                "orderId": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "usedByJobs": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "job": {
                                    "id": "schemas/common/path",
                                    "description": "absolute path based on live folder of a JobScheduler object.",
                                    "type": "string",
                                    "pattern": "/([^/]+/)*[^/]+"
                                }
                            }
                        }
                    },
                    "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"
                    },
                    "documentation": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    }
                }
            }
        }
    }
}