{
    "title": "orders with delivery date (permant part)",
    "id": "schemas/order/orders_p",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.OrdersP",
    "type": "object",
    "required": [
        "deliveryDate",
        "orders"
    ],
    "properties": {
        "deliveryDate": {
            "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"
        },
        "orders": {
            "type": "array",
            "items": {
                "id": "schemas/order/order_p",
                "javaType": "com.sos.joc.model.order.OrderP",
                "type": "object",
                "description": "compact=true then ONLY surveyDate, path, id, jobChain and _type are responded, title is optional",
                "required": [
                    "surveyDate",
                    "path",
                    "orderId",
                    "jobChain",
                    "estimatedDuration"
                ],
                "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": "/([^/]+/)*[^/]+"
                    },
                    "orderId": {
                        "type": "string"
                    },
                    "jobChain": {
                        "id": "schemas/common/path",
                        "description": "absolute path based on live folder of a JobScheduler object.",
                        "type": "string",
                        "pattern": "/([^/]+/)*[^/]+"
                    },
                    "priority": {
                        "id": "schemas/common/nonNegativeInteger",
                        "type": "integer",
                        "minimum": 0
                    },
                    "_type": {
                        "id": "schemas/order/orderType",
                        "javaType": "com.sos.joc.model.order.OrderType",
                        "type": "string",
                        "description": "the type of the order",
                        "enum": [
                            "PERMANENT",
                            "AD_HOC",
                            "FILE_ORDER"
                        ]
                    },
                    "title": {
                        "type": "string"
                    },
                    "initialState": {
                        "description": "the name of the start node",
                        "type": "string"
                    },
                    "endState": {
                        "description": "the name of the end node",
                        "type": "string"
                    },
                    "estimatedDuration": {
                        "id": "schemas/common/nonNegativeInteger",
                        "type": "integer",
                        "minimum": 0
                    },
                    "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"
                    }
                }
            }
        }
    }
}