{
    "title": "schedules (volatile part)",
    "id": "schemas/schedule/schedules_v",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.schedule.SchedulesV",
    "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_v",
                "javaType": "com.sos.joc.model.schedule.ScheduleV",
                "type": "object",
                "required": [
                    "surveyDate",
                    "path",
                    "name",
                    "state"
                ],
                "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": "/([^/]+/)*[^/]+"
                    },
                    "name": {
                        "type": "string"
                    },
                    "state": {
                        "id": "schemas/plan/scheduleState",
                        "javaType": "com.sos.joc.model.schedule.ScheduleState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "description": "0=active; 1=inactive",
                                "type": "integer"
                            },
                            "_text": {
                                "id": "schemas/plan/scheduleStateText",
                                "javaType": "com.sos.joc.model.schedule.ScheduleStateText",
                                "type": "string",
                                "enum": [
                                    "ACTIVE",
                                    "INACTIVE"
                                ]
                            }
                        }
                    },
                    "substitutedBy": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "configurationStatus": {
                        "id": "schemas/common/configurationStatus",
                        "javaType": "com.sos.joc.model.common.ConfigurationState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "description": "4=ok; 5=replacement_is_standing_by,removing_delayed; 2=error_in_configuration_file,changed_file_not_loaded,resource_is_missing",
                                "type": "integer"
                            },
                            "_text": {
                                "id": "schemas/common/configurationStatusText",
                                "javaType": "com.sos.joc.model.common.ConfigurationStateText",
                                "type": "string",
                                "enum": [
                                    "ERROR_IN_CONFIGURATION_FILE",
                                    "CHANGED_FILE_NOT_LOADED",
                                    "REMOVING_DELAYED",
                                    "RESOURCE_IS_MISSING",
                                    "REPLACEMENT_IS_STANDING_BY",
                                    "OK"
                                ]
                            },
                            "message": {
                                "description": "contains e.g. error message",
                                "type": "string"
                            }
                        }
                    }
                }
            }
        }
    }
}