{
    "title": "Out-Conditions",
    "id": "schemas/conditions/outconditions",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "List of all out Conditions",
    "javaType": "com.sos.joc.model.conditions.OutConditions",
    "type": "object",
    "required": [
        "deliveryDate"
    ],
    "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"
        },
        "masterId": {
            "type": "string"
        },
        "job": {
            "id": "schemas/common/path",
            "description": "absolute path based on live folder of a JobScheduler object.",
            "type": "string",
            "pattern": "/([^/]+/)*[^/]+"
        },
        "outconditions": {
            "type": "array",
            "items": {
                "id": "schemas/conditions/outcondition",
                "description": "Out Condition",
                "javaType": "com.sos.joc.model.conditions.OutCondition",
                "type": "object",
                "required": [
                    "deliveryDate"
                ],
                "properties": {
                    "id": {
                        "id": "schemas/common/nonNegativeLong",
                        "type": "string",
                        "format": "utc-millisec"
                    },
                    "workflow": {
                        "type": "string"
                    },
                    "conditionExpression": {
                        "id": "schemas/conditions/condition_expression",
                        "description": "Expression for Condition",
                        "javaType": "com.sos.joc.model.conditions.ConditionExpression",
                        "type": "object",
                        "required": [],
                        "properties": {
                            "expression": {
                                "type": "string"
                            },
                            "validatedExpression": {
                                "type": "string"
                            },
                            "value": {
                                "type": "boolean"
                            }
                        }
                    },
                    "outconditionEvents": {
                        "type": "array",
                        "items": {
                            "id": "schemas/conditions/outcondition_event",
                            "description": "Out Condition Event",
                            "javaType": "com.sos.joc.model.conditions.OutConditionEvent",
                            "type": "object",
                            "required": [],
                            "properties": {
                                "id": {
                                    "id": "schemas/common/nonNegativeLong",
                                    "type": "string",
                                    "format": "utc-millisec"
                                },
                                "event": {
                                    "type": "string"
                                },
                                "workflow": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}