{
    "title": "Obstacles",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.Obstacles200",
    "type": "object",
    "required": [
        "deliveryDate",
        "surveyDate",
        "orders"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "surveyDate": {
            "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": {
                "type": "object",
                "javaType": "com.sos.joc.model.order.Obstacles",
                "properties": {
                    "orderId": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "obstacles": {
                        "type": "array",
                        "uniqueItems": true,
                        "items": {
                            "javaType": "com.sos.joc.model.order.Obstacle",
                            "type": "object",
                            "required": [
                                "type"
                            ],
                            "properties": {
                                "type": {
                                    "javaType": "com.sos.joc.model.order.ObstacleType",
                                    "type": "string",
                                    "enum": [
                                        "WaitingForAdmission",
                                        "JobParallelismLimitReached"
                                    ],
                                    "javaEnumNames": [
                                        "WaitingForAdmission",
                                        "JobParallelismLimitReached"
                                    ]
                                },
                                "until": {
                                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                    "type": "string",
                                    "format": "date-time"
                                }
                            },
                            "additionalProperties": false
                        }
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}