{
    "title": "Obstacle",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.order.Obstacle200",
    "type": "object",
    "required": [
        "deliveryDate",
        "surveyDate",
        "orderId"
    ],
    "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"
        },
        "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
}