{
    "title": "OrderParameterisations of all schedules where current workflow is assigned and has orderParameterisations",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.workflow.Schedules",
    "type": "object",
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "schedules": {
            "type": "array",
            "items": {
                "type": "object",
                "javaType": "com.sos.joc.model.workflow.OrderParameterisations",
                "properties": {
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "name": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "title": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "orderParameterisations": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.inventory.model.schedule.OrderParameterisation",
                            "type": "object",
                            "description": "Parameterisation with variable set for a schedule and optional start and end position",
                            "properties": {
                                "orderName": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                },
                                "variables": {
                                    "description": "a map for arbitrary key-value pairs",
                                    "javaType": "com.sos.inventory.model.common.Variables",
                                    "type": "object",
                                    "additionalProperties": true
                                },
                                "positions": {
                                    "javaType": "com.sos.inventory.model.schedule.OrderPositions",
                                    "type": "object",
                                    "description": "start and end position",
                                    "properties": {
                                        "startPosition": {
                                            "description": "Actually, each even item is a string, each odd item is an integer",
                                            "type": "array",
                                            "items": {
                                                "anyOf": [
                                                    {
                                                        "type": "integer"
                                                    },
                                                    {
                                                        "type": "string"
                                                    }
                                                ]
                                            }
                                        },
                                        "endPositions": {
                                            "type": "array",
                                            "items": {
                                                "description": "Actually, each even item is a string, each odd item is an integer",
                                                "type": "array",
                                                "items": {
                                                    "anyOf": [
                                                        {
                                                            "type": "integer"
                                                        },
                                                        {
                                                            "type": "string"
                                                        }
                                                    ]
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}