{
    "title": "order with delivray date (permanent part)",
    "id": "schemas/order/order200_p",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.OrderP200",
    "type": "object",
    "required": [
        "deliveryDate",
        "order"
    ],
    "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"
        },
        "order": {
            "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"
                },
                "documentation": {
                    "id": "schemas/common/path",
                    "description": "absolute path based on live folder of a JobScheduler object.",
                    "type": "string",
                    "pattern": "/([^/]+/)*[^/]+"
                }
            }
        }
    }
}