{
    "title": "references",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.inventory.references.ResponseItems",
    "type": "object",
    "required": [
        "deliveryDate"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "workflows": {
            "type": "array",
            "items": {
                "javaType": "com.sos.controller.model.workflow.Workflow",
                "type": "object",
                "extends": {
                    "javaType": "com.sos.inventory.model.workflow.Workflow",
                    "type": "object",
                    "javaInterfaces": [
                        "com.sos.joc.model.common.IConfigurationObject",
                        "com.sos.joc.model.common.IDeployObject",
                        "com.sos.inventory.model.common.IInventoryObject"
                    ],
                    "required": [
                        "instructions"
                    ],
                    "propertyOrder": [
                        "TYPE",
                        "version",
                        "versionId",
                        "timeZone",
                        "title",
                        "documentationName",
                        "orderPreparation",
                        "jobResourceNames",
                        "instructions",
                        "jobs"
                    ],
                    "description": "deploy object with fixed property 'TYPE':'Workflow'",
                    "properties": {
                        "TYPE": {
                            "javaType": "com.sos.inventory.model.deploy.DeployType",
                            "type": "string",
                            "enum": [
                                "Workflow",
                                "JobClass",
                                "Lock",
                                "FileWatch",
                                "JobResource",
                                "Board"
                            ],
                            "javaEnumNames": [
                                "Workflow",
                                "JobClass",
                                "Lock",
                                "FileWatch",
                                "JobResource",
                                "Board"
                            ],
                            "default": "Workflow"
                        },
                        "version": {
                            "description": "inventory repository version",
                            "type": "string",
                            "pattern": "[0-9]+\\.[0-9]+\\.[0-9]+",
                            "default": "1.5.2",
                            "maxLength": 20
                        },
                        "versionId": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "timeZone": {
                            "type": "string",
                            "default": "Etc/UTC"
                        },
                        "title": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "documentationName": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "orderPreparation": {
                            "javaType": "com.sos.inventory.model.workflow.Requirements",
                            "type": "object",
                            "alias": "orderRequirements",
                            "properties": {
                                "parameters": {
                                    "javaType": "com.sos.inventory.model.workflow.Parameters",
                                    "type": "object",
                                    "additionalProperties": {
                                        "javaType": "com.sos.inventory.model.workflow.Parameter",
                                        "type": "object",
                                        "required": [
                                            "type"
                                        ],
                                        "properties": {
                                            "type": {
                                                "javaType": "com.sos.inventory.model.workflow.ParameterType",
                                                "type": "string",
                                                "enum": [
                                                    "String",
                                                    "Number",
                                                    "Boolean",
                                                    "List"
                                                ],
                                                "javaEnumNames": [
                                                    "String",
                                                    "Number",
                                                    "Boolean",
                                                    "List"
                                                ]
                                            },
                                            "default": {
                                                "description": "this value has to have the data type of the 'type' attribute",
                                                "anyOf": [
                                                    {
                                                        "type": "string"
                                                    },
                                                    {
                                                        "type": "number"
                                                    },
                                                    {
                                                        "type": "boolean"
                                                    },
                                                    {
                                                        "type": "array"
                                                    }
                                                ],
                                                "javaType": "java.lang.Object"
                                            },
                                            "final": {
                                                "type": "string"
                                            },
                                            "listParameters": {
                                                "javaType": "com.sos.inventory.model.workflow.ListParameters",
                                                "type": "object",
                                                "description": "parameters only for parameter type 'List'",
                                                "additionalProperties": {
                                                    "javaType": "com.sos.inventory.model.workflow.ListParameter",
                                                    "type": "object",
                                                    "required": [
                                                        "type"
                                                    ],
                                                    "description": "parameter type only Number, Boolean or String",
                                                    "properties": {
                                                        "type": {
                                                            "javaType": "com.sos.inventory.model.workflow.ListParameterType",
                                                            "type": "string",
                                                            "enum": [
                                                                "String",
                                                                "Number",
                                                                "Boolean"
                                                            ],
                                                            "javaEnumNames": [
                                                                "String",
                                                                "Number",
                                                                "Boolean"
                                                            ]
                                                        },
                                                        "default": {
                                                            "description": "this value has to have the data type of the 'type' attribute",
                                                            "anyOf": [
                                                                {
                                                                    "type": "string"
                                                                },
                                                                {
                                                                    "type": "number"
                                                                },
                                                                {
                                                                    "type": "boolean"
                                                                }
                                                            ],
                                                            "javaType": "java.lang.Object"
                                                        }
                                                    },
                                                    "additionalProperties": false
                                                }
                                            },
                                            "facet": {
                                                "description": "a regular expression to check the value of the parameter",
                                                "type": "string"
                                            },
                                            "list": {
                                                "description": "enumeration of possible parameter values",
                                                "type": "array",
                                                "items": {
                                                    "type": "string"
                                                }
                                            },
                                            "message": {
                                                "description": "a message if the value doesn't match the facet",
                                                "type": "string"
                                            }
                                        },
                                        "additionalProperties": false
                                    }
                                },
                                "allowUndeclared": {
                                    "type": "boolean",
                                    "default": false
                                }
                            },
                            "additionalProperties": false
                        },
                        "jobResourceNames": {
                            "alias": "jobResourcePaths",
                            "type": "array",
                            "items": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            }
                        },
                        "instructions": {
                            "type": "array",
                            "minItems": 1,
                            "items": {
                                "javaType": "com.sos.inventory.model.instruction.Instruction",
                                "type": "object",
                                "required": [
                                    "TYPE"
                                ],
                                "properties": {
                                    "TYPE": {
                                        "javaType": "com.sos.inventory.model.instruction.InstructionType",
                                        "type": "string",
                                        "enum": [
                                            "Execute.Named",
                                            "If",
                                            "Try",
                                            "Fork",
                                            "ForkList",
                                            "Finish",
                                            "Fail",
                                            "Retry",
                                            "Lock",
                                            "Prompt",
                                            "PostNotice",
                                            "PostNotices",
                                            "ExpectNotice",
                                            "ExpectNotices",
                                            "ConsumeNotices",
                                            "ImplicitEnd",
                                            "AddOrder",
                                            "Cycle",
                                            "StickySubagent",
                                            "Options",
                                            "Break"
                                        ]
                                    },
                                    "position": {
                                        "description": "Actually, each even item is a string, each odd item is an integer",
                                        "type": "array",
                                        "minItems": 1,
                                        "items": {
                                            "anyOf": [
                                                {
                                                    "type": "integer"
                                                },
                                                {
                                                    "type": "string"
                                                }
                                            ]
                                        }
                                    },
                                    "positionString": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "label": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "state": {
                                        "javaType": "com.sos.inventory.model.instruction.InstructionState",
                                        "type": "object",
                                        "required": [
                                            "severity",
                                            "_text"
                                        ],
                                        "properties": {
                                            "severity": {
                                                "type": "integer"
                                            },
                                            "_text": {
                                                "javaType": "com.sos.inventory.model.instruction.InstructionStateText",
                                                "type": "string",
                                                "enum": [
                                                    "SKIPPED",
                                                    "STOPPED",
                                                    "STOPPED_AND_SKIPPED"
                                                ]
                                            }
                                        },
                                        "additionalProperties": false
                                    }
                                },
                                "additionalProperties": false
                            }
                        },
                        "jobs": {
                            "javaType": "com.sos.inventory.model.workflow.Jobs",
                            "type": "object",
                            "additionalProperties": {
                                "javaType": "com.sos.inventory.model.job.Job",
                                "type": "object",
                                "javaInterfaces": [
                                    "com.sos.joc.model.common.IConfigurationObject"
                                ],
                                "required": [
                                    "agentName",
                                    "executable"
                                ],
                                "description": "returnCodeMeaning is deprecated: moved to ShellScriptExecutable",
                                "properties": {
                                    "agentName": {
                                        "alias": "agentId,agentPath",
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "subagentClusterId": {
                                        "alias": "subagentSelectionId",
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "subagentClusterIdExpr": {
                                        "alias": "subagentSelectionIdExpr",
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "withSubagentClusterIdExpr": {
                                        "type": "boolean",
                                        "default": false
                                    },
                                    "executable": {
                                        "javaType": "com.sos.inventory.model.job.Executable",
                                        "oneOf": [
                                            {
                                                "javaType": "com.sos.inventory.model.job.ExecutableScript",
                                                "type": "object",
                                                "extends": {
                                                    "javaType": "com.sos.inventory.model.job.Executable",
                                                    "type": "object",
                                                    "required": [
                                                        "TYPE"
                                                    ],
                                                    "properties": {
                                                        "TYPE": {
                                                            "javaType": "com.sos.inventory.model.job.ExecutableType",
                                                            "type": "string",
                                                            "enum": [
                                                                "ShellScriptExecutable",
                                                                "ScriptExecutable",
                                                                "InternalExecutable"
                                                            ],
                                                            "javaEnumNames": [
                                                                "ShellScriptExecutable",
                                                                "ScriptExecutable",
                                                                "InternalExecutable"
                                                            ]
                                                        }
                                                    },
                                                    "additionalProperties": false
                                                },
                                                "required": [
                                                    "script"
                                                ],
                                                "propertyOrder": [
                                                    "TYPE",
                                                    "script",
                                                    "env",
                                                    "v1Compatible"
                                                ],
                                                "description": "executable with fixed property 'TYPE':'ShellScriptExecutable'",
                                                "properties": {
                                                    "script": {
                                                        "type": "string",
                                                        "minLength": 1
                                                    },
                                                    "env": {
                                                        "description": "a map for arbitrary key-value pairs",
                                                        "javaType": "com.sos.inventory.model.job.Environment",
                                                        "type": "object",
                                                        "additionalProperties": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "v1Compatible": {
                                                        "type": "boolean",
                                                        "default": false
                                                    },
                                                    "returnCodeMeaning": {
                                                        "javaType": "com.sos.inventory.model.job.JobReturnCode",
                                                        "type": "object",
                                                        "extends": {
                                                            "javaType": "com.sos.inventory.model.job.JobReturnCodeWarning",
                                                            "type": "object",
                                                            "properties": {
                                                                "warning": {
                                                                    "anyOf": [
                                                                        {
                                                                            "type": "string",
                                                                            "pattern": "^-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*$"
                                                                        },
                                                                        {
                                                                            "type": "array",
                                                                            "minItems": 1,
                                                                            "items": {
                                                                                "type": "integer"
                                                                            }
                                                                        }
                                                                    ]
                                                                }
                                                            },
                                                            "additionalProperties": false
                                                        },
                                                        "anyOf": [
                                                            {
                                                                "required": [
                                                                    "success"
                                                                ]
                                                            },
                                                            {
                                                                "required": [
                                                                    "failure"
                                                                ]
                                                            },
                                                            {
                                                                "required": [
                                                                    "warning"
                                                                ]
                                                            }
                                                        ],
                                                        "properties": {
                                                            "success": {
                                                                "anyOf": [
                                                                    {
                                                                        "type": "string",
                                                                        "pattern": "^-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*$"
                                                                    },
                                                                    {
                                                                        "type": "array",
                                                                        "minItems": 1,
                                                                        "items": {
                                                                            "type": "integer"
                                                                        }
                                                                    }
                                                                ]
                                                            },
                                                            "failure": {
                                                                "anyOf": [
                                                                    {
                                                                        "type": "string",
                                                                        "pattern": "^(none|-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*)$"
                                                                    },
                                                                    {
                                                                        "type": "array",
                                                                        "minItems": 1,
                                                                        "items": {
                                                                            "type": "integer"
                                                                        }
                                                                    }
                                                                ]
                                                            }
                                                        },
                                                        "additionalProperties": false
                                                    },
                                                    "login": {
                                                        "type": "object",
                                                        "javaType": "com.sos.inventory.model.job.ExecutableScriptLogin",
                                                        "required": [
                                                            "credentialKey"
                                                        ],
                                                        "properties": {
                                                            "credentialKey": {
                                                                "type": "string",
                                                                "minLength": 1
                                                            },
                                                            "withUserProfile": {
                                                                "type": "boolean",
                                                                "default": false
                                                            }
                                                        },
                                                        "additionalProperties": false
                                                    }
                                                },
                                                "additionalProperties": false
                                            },
                                            {
                                                "javaType": "com.sos.inventory.model.job.ExecutableJava",
                                                "type": "object",
                                                "extends": {
                                                    "javaType": "com.sos.inventory.model.job.Executable",
                                                    "type": "object",
                                                    "required": [
                                                        "TYPE"
                                                    ],
                                                    "properties": {
                                                        "TYPE": {
                                                            "javaType": "com.sos.inventory.model.job.ExecutableType",
                                                            "type": "string",
                                                            "enum": [
                                                                "ShellScriptExecutable",
                                                                "ScriptExecutable",
                                                                "InternalExecutable"
                                                            ],
                                                            "javaEnumNames": [
                                                                "ShellScriptExecutable",
                                                                "ScriptExecutable",
                                                                "InternalExecutable"
                                                            ]
                                                        }
                                                    },
                                                    "additionalProperties": false
                                                },
                                                "required": [
                                                    "className"
                                                ],
                                                "propertyOrder": [
                                                    "TYPE",
                                                    "className",
                                                    "script"
                                                ],
                                                "description": "executable with fixed property 'TYPE':'InternalExecutable'",
                                                "properties": {
                                                    "className": {
                                                        "type": "string",
                                                        "minLength": 1
                                                    },
                                                    "internalType": {
                                                        "javaType": "com.sos.inventory.model.job.InternalExecutableType",
                                                        "type": "string",
                                                        "enum": [
                                                            "JITL",
                                                            "Java",
                                                            "JavaScript_Graal",
                                                            "JavaScript_Node"
                                                        ],
                                                        "javaEnumNames": [
                                                            "JITL",
                                                            "Java",
                                                            "JavaScript_Graal",
                                                            "JavaScript_Node"
                                                        ]
                                                    },
                                                    "script": {
                                                        "type": "string"
                                                    },
                                                    "jobArguments": {
                                                        "description": "a map for arbitrary key-value pairs",
                                                        "javaType": "com.sos.inventory.model.common.Variables",
                                                        "type": "object",
                                                        "additionalProperties": true
                                                    },
                                                    "returnCodeMeaning": {
                                                        "javaType": "com.sos.inventory.model.job.JobReturnCodeWarning",
                                                        "type": "object",
                                                        "properties": {
                                                            "warning": {
                                                                "anyOf": [
                                                                    {
                                                                        "type": "string",
                                                                        "pattern": "^-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*$"
                                                                    },
                                                                    {
                                                                        "type": "array",
                                                                        "minItems": 1,
                                                                        "items": {
                                                                            "type": "integer"
                                                                        }
                                                                    }
                                                                ]
                                                            }
                                                        },
                                                        "additionalProperties": false
                                                    },
                                                    "arguments": {
                                                        "description": "a map for arbitrary key-value pairs",
                                                        "javaType": "com.sos.inventory.model.job.Environment",
                                                        "type": "object",
                                                        "additionalProperties": {
                                                            "type": "string"
                                                        }
                                                    }
                                                },
                                                "additionalProperties": false
                                            }
                                        ]
                                    },
                                    "admissionTimeScheme": {
                                        "javaType": "com.sos.inventory.model.job.AdmissionTimeScheme",
                                        "type": "object",
                                        "required": [
                                            "periods"
                                        ],
                                        "properties": {
                                            "periods": {
                                                "type": "array",
                                                "items": {
                                                    "javaType": "com.sos.inventory.model.job.AdmissionTimePeriod",
                                                    "type": "object",
                                                    "properties": {
                                                        "TYPE": {
                                                            "javaType": "com.sos.inventory.model.job.AdmissionTimePeriodType",
                                                            "type": "string",
                                                            "enum": [
                                                                "MonthlyDatePeriod",
                                                                "MonthlyLastDatePeriod",
                                                                "MonthlyWeekdayPeriod",
                                                                "MonthlyLastWeekdayPeriod",
                                                                "WeekdayPeriod",
                                                                "DailyPeriod",
                                                                "SpecificDatePeriod"
                                                            ]
                                                        },
                                                        "duration": {
                                                            "type": "number",
                                                            "format": "utc-millisec",
                                                            "minimum": 0
                                                        }
                                                    },
                                                    "additionalProperties": false
                                                }
                                            }
                                        },
                                        "additionalProperties": false
                                    },
                                    "skipIfNoAdmissionForOrderDay": {
                                        "alias": "skipIfNoAdmissionStartForOrderDay",
                                        "type": "boolean",
                                        "default": false
                                    },
                                    "returnCodeMeaning": {
                                        "javaType": "com.sos.inventory.model.job.JobReturnCode",
                                        "type": "object",
                                        "extends": {
                                            "javaType": "com.sos.inventory.model.job.JobReturnCodeWarning",
                                            "type": "object",
                                            "properties": {
                                                "warning": {
                                                    "anyOf": [
                                                        {
                                                            "type": "string",
                                                            "pattern": "^-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*$"
                                                        },
                                                        {
                                                            "type": "array",
                                                            "minItems": 1,
                                                            "items": {
                                                                "type": "integer"
                                                            }
                                                        }
                                                    ]
                                                }
                                            },
                                            "additionalProperties": false
                                        },
                                        "anyOf": [
                                            {
                                                "required": [
                                                    "success"
                                                ]
                                            },
                                            {
                                                "required": [
                                                    "failure"
                                                ]
                                            },
                                            {
                                                "required": [
                                                    "warning"
                                                ]
                                            }
                                        ],
                                        "properties": {
                                            "success": {
                                                "anyOf": [
                                                    {
                                                        "type": "string",
                                                        "pattern": "^-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*$"
                                                    },
                                                    {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "integer"
                                                        }
                                                    }
                                                ]
                                            },
                                            "failure": {
                                                "anyOf": [
                                                    {
                                                        "type": "string",
                                                        "pattern": "^(none|-?[0-9]+(\\.\\.-?[0-9]+)?(, *-?[0-9]+(\\.\\.-?[0-9]+)?)*)$"
                                                    },
                                                    {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "integer"
                                                        }
                                                    }
                                                ]
                                            }
                                        },
                                        "additionalProperties": false
                                    },
                                    "parallelism": {
                                        "alias": "taskLimit",
                                        "type": "integer",
                                        "minimum": 1,
                                        "default": 1
                                    },
                                    "timeout": {
                                        "type": "integer",
                                        "minimum": 0
                                    },
                                    "graceTimeout": {
                                        "alias": "sigkillDelay",
                                        "description": "in seconds",
                                        "type": "integer",
                                        "minimum": 0,
                                        "default": 1
                                    },
                                    "failOnErrWritten": {
                                        "type": "boolean",
                                        "default": false
                                    },
                                    "warnOnErrWritten": {
                                        "type": "boolean",
                                        "default": false
                                    },
                                    "jobTemplate": {
                                        "type": "object",
                                        "javaType": "com.sos.inventory.model.job.JobTemplateRef",
                                        "properties": {
                                            "name": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255,
                                                "minLength": 1
                                            },
                                            "hash": {
                                                "type": "string",
                                                "pattern": "^[^<>]*$",
                                                "maxLength": 255
                                            }
                                        },
                                        "additionalProperties": false
                                    },
                                    "defaultArguments": {
                                        "description": "a map for arbitrary key-value pairs",
                                        "javaType": "com.sos.inventory.model.job.Environment",
                                        "type": "object",
                                        "additionalProperties": {
                                            "type": "string"
                                        }
                                    },
                                    "jobResourceNames": {
                                        "alias": "jobResourcePaths",
                                        "type": "array",
                                        "items": {
                                            "type": "string",
                                            "pattern": "^[^<>]*$",
                                            "maxLength": 255
                                        }
                                    },
                                    "title": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "documentationName": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "criticality": {
                                        "javaType": "com.sos.inventory.model.job.JobCriticality",
                                        "type": "string",
                                        "enum": [
                                            "NORMAL",
                                            "CRITICAL"
                                        ]
                                    },
                                    "warnIfShorter": {
                                        "type": "string",
                                        "pattern": "^([0-9]+:[0-5][0-9]:[0-5][0-9]|[0-9]+s?|[0-9]+%)$"
                                    },
                                    "warnIfLonger": {
                                        "type": "string",
                                        "pattern": "^([0-9]+:[0-5][0-9]:[0-5][0-9]|[0-9]+s?|[0-9]+%)$"
                                    },
                                    "notification": {
                                        "javaType": "com.sos.inventory.model.job.notification.JobNotification",
                                        "type": "object",
                                        "properties": {
                                            "types": {
                                                "type": "array",
                                                "items": {
                                                    "javaType": "com.sos.inventory.model.job.notification.JobNotificationType",
                                                    "type": "string",
                                                    "enum": [
                                                        "ERROR",
                                                        "SUCCESS",
                                                        "WARNING"
                                                    ]
                                                }
                                            },
                                            "mail": {
                                                "javaType": "com.sos.inventory.model.job.notification.JobNotificationMail",
                                                "type": "object",
                                                "properties": {
                                                    "to": {
                                                        "type": "string",
                                                        "pattern": "^[^<>]*$",
                                                        "maxLength": 900
                                                    },
                                                    "cc": {
                                                        "type": "string",
                                                        "pattern": "^[^<>]*$",
                                                        "maxLength": 900
                                                    },
                                                    "bcc": {
                                                        "type": "string",
                                                        "pattern": "^[^<>]*$",
                                                        "maxLength": 900
                                                    }
                                                },
                                                "additionalProperties": false
                                            }
                                        },
                                        "additionalProperties": false
                                    }
                                },
                                "additionalProperties": false
                            }
                        }
                    },
                    "additionalProperties": false
                },
                "properties": {
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "isCurrentVersion": {
                        "type": "boolean",
                        "default": true
                    },
                    "versionDate": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "state": {
                        "javaType": "com.sos.controller.model.common.SyncState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "type": "integer"
                            },
                            "_text": {
                                "javaType": "com.sos.controller.model.common.SyncStateText",
                                "description": "SUSPENDED, OUTSTANDING only for Workflows",
                                "type": "string",
                                "enum": [
                                    "IN_SYNC",
                                    "NOT_IN_SYNC",
                                    "NOT_DEPLOYED",
                                    "SUSPENDED",
                                    "OUTSTANDING",
                                    "UNKNOWN"
                                ]
                            }
                        },
                        "additionalProperties": false
                    },
                    "suspended": {
                        "description": "true if state._text == SUSPENDED or SUSPENDING",
                        "type": "boolean",
                        "default": false
                    },
                    "fileOrderSources": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.controller.model.fileordersource.FileOrderSource",
                            "type": "object",
                            "extends": {
                                "javaType": "com.sos.inventory.model.fileordersource.FileOrderSource",
                                "type": "object",
                                "javaInterfaces": [
                                    "com.sos.joc.model.common.IConfigurationObject",
                                    "com.sos.joc.model.common.IDeployObject",
                                    "com.sos.inventory.model.common.IInventoryObject"
                                ],
                                "anyOf": [
                                    {
                                        "required": [
                                            "workflowName",
                                            "agentName",
                                            "directoryExpr"
                                        ]
                                    },
                                    {
                                        "required": [
                                            "workflowName",
                                            "agentName",
                                            "directory"
                                        ]
                                    }
                                ],
                                "propertyOrder": [
                                    "TYPE",
                                    "version",
                                    "workflowName",
                                    "agentName",
                                    "directoryExpr",
                                    "directory",
                                    "pattern",
                                    "timeZone",
                                    "delay",
                                    "title",
                                    "documentationName"
                                ],
                                "description": "deploy object with fixed property 'TYPE':'FileWatch'",
                                "properties": {
                                    "TYPE": {
                                        "javaType": "com.sos.inventory.model.deploy.DeployType",
                                        "type": "string",
                                        "enum": [
                                            "Workflow",
                                            "JobClass",
                                            "Lock",
                                            "FileWatch",
                                            "JobResource",
                                            "Board"
                                        ],
                                        "javaEnumNames": [
                                            "Workflow",
                                            "JobClass",
                                            "Lock",
                                            "FileWatch",
                                            "JobResource",
                                            "Board"
                                        ],
                                        "default": "Workflow"
                                    },
                                    "version": {
                                        "description": "inventory repository version",
                                        "type": "string",
                                        "pattern": "[0-9]+\\.[0-9]+\\.[0-9]+",
                                        "default": "1.5.2",
                                        "maxLength": 20
                                    },
                                    "workflowName": {
                                        "alias": "workflowPath",
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "agentName": {
                                        "alias": "agentId,agentPath",
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "directoryExpr": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "directory": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255,
                                        "minLength": 1
                                    },
                                    "pattern": {
                                        "type": "string"
                                    },
                                    "timeZone": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "delay": {
                                        "type": "integer",
                                        "format": "utc-millisec",
                                        "minimum": 1,
                                        "maximum": 9999
                                    },
                                    "title": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    },
                                    "documentationName": {
                                        "type": "string",
                                        "pattern": "^[^<>]*$",
                                        "maxLength": 255
                                    }
                                },
                                "additionalProperties": false
                            },
                            "properties": {
                                "path": {
                                    "description": "absolute path of an object.",
                                    "type": "string",
                                    "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                                    "maxLength": 255,
                                    "minLength": 1
                                },
                                "versionDate": {
                                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                                    "type": "string",
                                    "format": "date-time"
                                },
                                "state": {
                                    "javaType": "com.sos.controller.model.common.SyncState",
                                    "type": "object",
                                    "required": [
                                        "severity",
                                        "_text"
                                    ],
                                    "properties": {
                                        "severity": {
                                            "type": "integer"
                                        },
                                        "_text": {
                                            "javaType": "com.sos.controller.model.common.SyncStateText",
                                            "description": "SUSPENDED, OUTSTANDING only for Workflows",
                                            "type": "string",
                                            "enum": [
                                                "IN_SYNC",
                                                "NOT_IN_SYNC",
                                                "NOT_DEPLOYED",
                                                "SUSPENDED",
                                                "OUTSTANDING",
                                                "UNKNOWN"
                                            ]
                                        }
                                    },
                                    "additionalProperties": false
                                },
                                "valid": {
                                    "type": "boolean"
                                }
                            },
                            "additionalProperties": false
                        }
                    },
                    "forkListVariables": {
                        "type": "array",
                        "uniqueItems": true,
                        "items": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    },
                    "hasExpectedNoticeBoards": {
                        "type": "boolean"
                    },
                    "hasPostNoticeBoards": {
                        "type": "boolean"
                    },
                    "hasConsumeNoticeBoards": {
                        "type": "boolean"
                    },
                    "hasAddOrderDependencies": {
                        "type": "boolean"
                    },
                    "numOfStoppedInstructions": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "numOfSkippedInstructions": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "valid": {
                        "type": "boolean"
                    }
                },
                "additionalProperties": false
            }
        },
        "fileOrderSources": {
            "type": "array",
            "items": {
                "javaType": "com.sos.controller.model.fileordersource.FileOrderSource",
                "type": "object",
                "extends": {
                    "javaType": "com.sos.inventory.model.fileordersource.FileOrderSource",
                    "type": "object",
                    "javaInterfaces": [
                        "com.sos.joc.model.common.IConfigurationObject",
                        "com.sos.joc.model.common.IDeployObject",
                        "com.sos.inventory.model.common.IInventoryObject"
                    ],
                    "anyOf": [
                        {
                            "required": [
                                "workflowName",
                                "agentName",
                                "directoryExpr"
                            ]
                        },
                        {
                            "required": [
                                "workflowName",
                                "agentName",
                                "directory"
                            ]
                        }
                    ],
                    "propertyOrder": [
                        "TYPE",
                        "version",
                        "workflowName",
                        "agentName",
                        "directoryExpr",
                        "directory",
                        "pattern",
                        "timeZone",
                        "delay",
                        "title",
                        "documentationName"
                    ],
                    "description": "deploy object with fixed property 'TYPE':'FileWatch'",
                    "properties": {
                        "TYPE": {
                            "javaType": "com.sos.inventory.model.deploy.DeployType",
                            "type": "string",
                            "enum": [
                                "Workflow",
                                "JobClass",
                                "Lock",
                                "FileWatch",
                                "JobResource",
                                "Board"
                            ],
                            "javaEnumNames": [
                                "Workflow",
                                "JobClass",
                                "Lock",
                                "FileWatch",
                                "JobResource",
                                "Board"
                            ],
                            "default": "Workflow"
                        },
                        "version": {
                            "description": "inventory repository version",
                            "type": "string",
                            "pattern": "[0-9]+\\.[0-9]+\\.[0-9]+",
                            "default": "1.5.2",
                            "maxLength": 20
                        },
                        "workflowName": {
                            "alias": "workflowPath",
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "agentName": {
                            "alias": "agentId,agentPath",
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "directoryExpr": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "directory": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "pattern": {
                            "type": "string"
                        },
                        "timeZone": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "delay": {
                            "type": "integer",
                            "format": "utc-millisec",
                            "minimum": 1,
                            "maximum": 9999
                        },
                        "title": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        },
                        "documentationName": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    },
                    "additionalProperties": false
                },
                "properties": {
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "versionDate": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "state": {
                        "javaType": "com.sos.controller.model.common.SyncState",
                        "type": "object",
                        "required": [
                            "severity",
                            "_text"
                        ],
                        "properties": {
                            "severity": {
                                "type": "integer"
                            },
                            "_text": {
                                "javaType": "com.sos.controller.model.common.SyncStateText",
                                "description": "SUSPENDED, OUTSTANDING only for Workflows",
                                "type": "string",
                                "enum": [
                                    "IN_SYNC",
                                    "NOT_IN_SYNC",
                                    "NOT_DEPLOYED",
                                    "SUSPENDED",
                                    "OUTSTANDING",
                                    "UNKNOWN"
                                ]
                            }
                        },
                        "additionalProperties": false
                    },
                    "valid": {
                        "type": "boolean"
                    }
                },
                "additionalProperties": false
            }
        },
        "schedules": {
            "type": "array",
            "items": {
                "javaType": "com.sos.inventory.model.schedule.Schedule",
                "type": "object",
                "description": "The order template for scheduling orders to Controller. workflowName is deprecated",
                "javaInterfaces": [
                    "com.sos.joc.model.common.IConfigurationObject",
                    "com.sos.joc.model.common.IReleaseObject",
                    "com.sos.inventory.model.common.IInventoryObject"
                ],
                "anyOf": [
                    {
                        "required": [
                            "workflowName",
                            "calendars"
                        ]
                    },
                    {
                        "required": [
                            "workflowNames",
                            "calendars"
                        ]
                    }
                ],
                "properties": {
                    "version": {
                        "description": "inventory repository version",
                        "type": "string",
                        "pattern": "[0-9]+\\.[0-9]+\\.[0-9]+",
                        "default": "1.5.2",
                        "maxLength": 20
                    },
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "workflowName": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "workflowNames": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255
                        }
                    },
                    "title": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "documentationName": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "submitOrderToControllerWhenPlanned": {
                        "type": "boolean",
                        "default": false
                    },
                    "planOrderAutomatically": {
                        "type": "boolean",
                        "default": false
                    },
                    "calendars": {
                        "type": "array",
                        "minItems": 1,
                        "items": {
                            "javaType": "com.sos.inventory.model.calendar.AssignedCalendars",
                            "type": "object",
                            "required": [
                                "calendarName",
                                "periods"
                            ],
                            "properties": {
                                "calendarName": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                },
                                "calendarPath": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                },
                                "timeZone": {
                                    "type": "string",
                                    "default": "Etc/UTC"
                                },
                                "includes": {
                                    "javaType": "com.sos.inventory.model.calendar.Frequencies",
                                    "type": "object",
                                    "anyOf": [
                                        {
                                            "required": [
                                                "dates"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "weekdays"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "monthdays"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "ultimos"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "months"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "holidays"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "repetitions"
                                            ]
                                        }
                                    ],
                                    "properties": {
                                        "dates": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "description": "ISO date YYYY-MM-DD",
                                                "type": "string",
                                                "minLength": 1,
                                                "format": "date"
                                            }
                                        },
                                        "weekdays": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.WeekDays",
                                                "type": "object",
                                                "required": [
                                                    "days"
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 6
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "monthdays": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                "type": "object",
                                                "anyOf": [
                                                    {
                                                        "required": [
                                                            "days"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "weeklyDays"
                                                        ]
                                                    }
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "digit from 1-31",
                                                            "type": "integer",
                                                            "minimum": 1,
                                                            "maximum": 31
                                                        }
                                                    },
                                                    "weeklyDays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                            "type": "object",
                                                            "required": [
                                                                "day",
                                                                "weekOfMonth"
                                                            ],
                                                            "properties": {
                                                                "day": {
                                                                    "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                    "type": "integer",
                                                                    "minimum": 0,
                                                                    "maximum": 6
                                                                },
                                                                "weekOfMonth": {
                                                                    "type": "integer",
                                                                    "minimum": 1,
                                                                    "maximum": 5
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "ultimos": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                "type": "object",
                                                "anyOf": [
                                                    {
                                                        "required": [
                                                            "days"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "weeklyDays"
                                                        ]
                                                    }
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "digit from 1-31",
                                                            "type": "integer",
                                                            "minimum": 1,
                                                            "maximum": 31
                                                        }
                                                    },
                                                    "weeklyDays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                            "type": "object",
                                                            "required": [
                                                                "day",
                                                                "weekOfMonth"
                                                            ],
                                                            "properties": {
                                                                "day": {
                                                                    "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                    "type": "integer",
                                                                    "minimum": 0,
                                                                    "maximum": 6
                                                                },
                                                                "weekOfMonth": {
                                                                    "type": "integer",
                                                                    "minimum": 1,
                                                                    "maximum": 5
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "months": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.Months",
                                                "type": "object",
                                                "anyOf": [
                                                    {
                                                        "required": [
                                                            "months",
                                                            "weekdays"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "months",
                                                            "monthdays"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "months",
                                                            "ultimos"
                                                        ]
                                                    }
                                                ],
                                                "properties": {
                                                    "months": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "integer",
                                                            "minimum": 1,
                                                            "maximum": 12
                                                        }
                                                    },
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "weekdays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.WeekDays",
                                                            "type": "object",
                                                            "required": [
                                                                "days"
                                                            ],
                                                            "properties": {
                                                                "from": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "to": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "days": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                        "type": "integer",
                                                                        "minimum": 0,
                                                                        "maximum": 6
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "monthdays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                            "type": "object",
                                                            "anyOf": [
                                                                {
                                                                    "required": [
                                                                        "days"
                                                                    ]
                                                                },
                                                                {
                                                                    "required": [
                                                                        "weeklyDays"
                                                                    ]
                                                                }
                                                            ],
                                                            "properties": {
                                                                "from": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "to": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "days": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "description": "digit from 1-31",
                                                                        "type": "integer",
                                                                        "minimum": 1,
                                                                        "maximum": 31
                                                                    }
                                                                },
                                                                "weeklyDays": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                                        "type": "object",
                                                                        "required": [
                                                                            "day",
                                                                            "weekOfMonth"
                                                                        ],
                                                                        "properties": {
                                                                            "day": {
                                                                                "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                                "type": "integer",
                                                                                "minimum": 0,
                                                                                "maximum": 6
                                                                            },
                                                                            "weekOfMonth": {
                                                                                "type": "integer",
                                                                                "minimum": 1,
                                                                                "maximum": 5
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "ultimos": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                            "type": "object",
                                                            "anyOf": [
                                                                {
                                                                    "required": [
                                                                        "days"
                                                                    ]
                                                                },
                                                                {
                                                                    "required": [
                                                                        "weeklyDays"
                                                                    ]
                                                                }
                                                            ],
                                                            "properties": {
                                                                "from": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "to": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "days": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "description": "digit from 1-31",
                                                                        "type": "integer",
                                                                        "minimum": 1,
                                                                        "maximum": 31
                                                                    }
                                                                },
                                                                "weeklyDays": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                                        "type": "object",
                                                                        "required": [
                                                                            "day",
                                                                            "weekOfMonth"
                                                                        ],
                                                                        "properties": {
                                                                            "day": {
                                                                                "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                                "type": "integer",
                                                                                "minimum": 0,
                                                                                "maximum": 6
                                                                            },
                                                                            "weekOfMonth": {
                                                                                "type": "integer",
                                                                                "minimum": 1,
                                                                                "maximum": 5
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "holidays": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.Holidays",
                                                "type": "object",
                                                "required": [
                                                    "dates"
                                                ],
                                                "properties": {
                                                    "nationalCalendar": {
                                                        "type": "string",
                                                        "pattern": "^[^<>]*$",
                                                        "maxLength": 255
                                                    },
                                                    "dates": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "ISO date YYYY-MM-DD",
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "format": "date"
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "repetitions": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.Repetition",
                                                "type": "object",
                                                "required": [
                                                    "repetition",
                                                    "step",
                                                    "from"
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "repetition": {
                                                        "javaType": "com.sos.inventory.model.calendar.RepetitionText",
                                                        "type": "string",
                                                        "enum": [
                                                            "DAILY",
                                                            "WEEKLY",
                                                            "MONTHLY",
                                                            "YEARLY"
                                                        ]
                                                    },
                                                    "step": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "default": 1
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "excludes": {
                                    "javaType": "com.sos.inventory.model.calendar.Frequencies",
                                    "type": "object",
                                    "anyOf": [
                                        {
                                            "required": [
                                                "dates"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "weekdays"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "monthdays"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "ultimos"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "months"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "holidays"
                                            ]
                                        },
                                        {
                                            "required": [
                                                "repetitions"
                                            ]
                                        }
                                    ],
                                    "properties": {
                                        "dates": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "description": "ISO date YYYY-MM-DD",
                                                "type": "string",
                                                "minLength": 1,
                                                "format": "date"
                                            }
                                        },
                                        "weekdays": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.WeekDays",
                                                "type": "object",
                                                "required": [
                                                    "days"
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                            "type": "integer",
                                                            "minimum": 0,
                                                            "maximum": 6
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "monthdays": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                "type": "object",
                                                "anyOf": [
                                                    {
                                                        "required": [
                                                            "days"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "weeklyDays"
                                                        ]
                                                    }
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "digit from 1-31",
                                                            "type": "integer",
                                                            "minimum": 1,
                                                            "maximum": 31
                                                        }
                                                    },
                                                    "weeklyDays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                            "type": "object",
                                                            "required": [
                                                                "day",
                                                                "weekOfMonth"
                                                            ],
                                                            "properties": {
                                                                "day": {
                                                                    "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                    "type": "integer",
                                                                    "minimum": 0,
                                                                    "maximum": 6
                                                                },
                                                                "weekOfMonth": {
                                                                    "type": "integer",
                                                                    "minimum": 1,
                                                                    "maximum": 5
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "ultimos": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                "type": "object",
                                                "anyOf": [
                                                    {
                                                        "required": [
                                                            "days"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "weeklyDays"
                                                        ]
                                                    }
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "days": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "digit from 1-31",
                                                            "type": "integer",
                                                            "minimum": 1,
                                                            "maximum": 31
                                                        }
                                                    },
                                                    "weeklyDays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                            "type": "object",
                                                            "required": [
                                                                "day",
                                                                "weekOfMonth"
                                                            ],
                                                            "properties": {
                                                                "day": {
                                                                    "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                    "type": "integer",
                                                                    "minimum": 0,
                                                                    "maximum": 6
                                                                },
                                                                "weekOfMonth": {
                                                                    "type": "integer",
                                                                    "minimum": 1,
                                                                    "maximum": 5
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "months": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.Months",
                                                "type": "object",
                                                "anyOf": [
                                                    {
                                                        "required": [
                                                            "months",
                                                            "weekdays"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "months",
                                                            "monthdays"
                                                        ]
                                                    },
                                                    {
                                                        "required": [
                                                            "months",
                                                            "ultimos"
                                                        ]
                                                    }
                                                ],
                                                "properties": {
                                                    "months": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "type": "integer",
                                                            "minimum": 1,
                                                            "maximum": 12
                                                        }
                                                    },
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "weekdays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.WeekDays",
                                                            "type": "object",
                                                            "required": [
                                                                "days"
                                                            ],
                                                            "properties": {
                                                                "from": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "to": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "days": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                        "type": "integer",
                                                                        "minimum": 0,
                                                                        "maximum": 6
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "monthdays": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                            "type": "object",
                                                            "anyOf": [
                                                                {
                                                                    "required": [
                                                                        "days"
                                                                    ]
                                                                },
                                                                {
                                                                    "required": [
                                                                        "weeklyDays"
                                                                    ]
                                                                }
                                                            ],
                                                            "properties": {
                                                                "from": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "to": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "days": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "description": "digit from 1-31",
                                                                        "type": "integer",
                                                                        "minimum": 1,
                                                                        "maximum": 31
                                                                    }
                                                                },
                                                                "weeklyDays": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                                        "type": "object",
                                                                        "required": [
                                                                            "day",
                                                                            "weekOfMonth"
                                                                        ],
                                                                        "properties": {
                                                                            "day": {
                                                                                "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                                "type": "integer",
                                                                                "minimum": 0,
                                                                                "maximum": 6
                                                                            },
                                                                            "weekOfMonth": {
                                                                                "type": "integer",
                                                                                "minimum": 1,
                                                                                "maximum": 5
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    },
                                                    "ultimos": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "javaType": "com.sos.inventory.model.calendar.MonthDays",
                                                            "type": "object",
                                                            "anyOf": [
                                                                {
                                                                    "required": [
                                                                        "days"
                                                                    ]
                                                                },
                                                                {
                                                                    "required": [
                                                                        "weeklyDays"
                                                                    ]
                                                                }
                                                            ],
                                                            "properties": {
                                                                "from": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "to": {
                                                                    "description": "ISO date YYYY-MM-DD",
                                                                    "type": "string",
                                                                    "minLength": 1,
                                                                    "format": "date"
                                                                },
                                                                "days": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "description": "digit from 1-31",
                                                                        "type": "integer",
                                                                        "minimum": 1,
                                                                        "maximum": 31
                                                                    }
                                                                },
                                                                "weeklyDays": {
                                                                    "type": "array",
                                                                    "minItems": 1,
                                                                    "items": {
                                                                        "javaType": "com.sos.inventory.model.calendar.WeeklyDay",
                                                                        "type": "object",
                                                                        "required": [
                                                                            "day",
                                                                            "weekOfMonth"
                                                                        ],
                                                                        "properties": {
                                                                            "day": {
                                                                                "description": "digit from 0-6, 0=Sunday, 1=Monday, ..., 6=Saturday",
                                                                                "type": "integer",
                                                                                "minimum": 0,
                                                                                "maximum": 6
                                                                            },
                                                                            "weekOfMonth": {
                                                                                "type": "integer",
                                                                                "minimum": 1,
                                                                                "maximum": 5
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "holidays": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.Holidays",
                                                "type": "object",
                                                "required": [
                                                    "dates"
                                                ],
                                                "properties": {
                                                    "nationalCalendar": {
                                                        "type": "string",
                                                        "pattern": "^[^<>]*$",
                                                        "maxLength": 255
                                                    },
                                                    "dates": {
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "description": "ISO date YYYY-MM-DD",
                                                            "type": "string",
                                                            "minLength": 1,
                                                            "format": "date"
                                                        }
                                                    }
                                                }
                                            }
                                        },
                                        "repetitions": {
                                            "type": "array",
                                            "minItems": 1,
                                            "items": {
                                                "javaType": "com.sos.inventory.model.calendar.Repetition",
                                                "type": "object",
                                                "required": [
                                                    "repetition",
                                                    "step",
                                                    "from"
                                                ],
                                                "properties": {
                                                    "from": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "to": {
                                                        "description": "ISO date YYYY-MM-DD",
                                                        "type": "string",
                                                        "minLength": 1,
                                                        "format": "date"
                                                    },
                                                    "repetition": {
                                                        "javaType": "com.sos.inventory.model.calendar.RepetitionText",
                                                        "type": "string",
                                                        "enum": [
                                                            "DAILY",
                                                            "WEEKLY",
                                                            "MONTHLY",
                                                            "YEARLY"
                                                        ]
                                                    },
                                                    "step": {
                                                        "type": "integer",
                                                        "minimum": 1,
                                                        "default": 1
                                                    }
                                                }
                                            }
                                        }
                                    }
                                },
                                "periods": {
                                    "type": "array",
                                    "minItems": 1,
                                    "items": {
                                        "javaType": "com.sos.inventory.model.calendar.Period",
                                        "type": "object",
                                        "properties": {
                                            "singleStart": {
                                                "type": "string",
                                                "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                            },
                                            "begin": {
                                                "type": "string",
                                                "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                            },
                                            "end": {
                                                "type": "string",
                                                "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                            },
                                            "repeat": {
                                                "type": "string",
                                                "pattern": "^([0-1][0-9]|2[0-4])(:[0-5][0-9]){1,2}$"
                                            },
                                            "whenHoliday": {
                                                "javaType": "com.sos.inventory.model.calendar.WhenHolidayType",
                                                "description": "default: SUPPRESS",
                                                "type": "string",
                                                "enum": [
                                                    "SUPPRESS",
                                                    "IGNORE",
                                                    "PREVIOUSNONWORKINGDAY",
                                                    "NEXTNONWORKINGDAY"
                                                ]
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "nonWorkingDayCalendars": {
                        "type": "array",
                        "items": {
                            "javaType": "com.sos.inventory.model.calendar.AssignedNonWorkingDayCalendars",
                            "type": "object",
                            "required": [
                                "calendarName"
                            ],
                            "properties": {
                                "calendarName": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                },
                                "calendarPath": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255
                                }
                            }
                        }
                    },
                    "orderParameterisations": {
                        "alias": "variableSets",
                        "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": 30
                                },
                                "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": {
                                            "anyOf": [
                                                {
                                                    "description": "Actually, each even item is a string, each odd item is an integer",
                                                    "type": "array",
                                                    "minItems": 1,
                                                    "items": {
                                                        "anyOf": [
                                                            {
                                                                "type": "integer"
                                                            },
                                                            {
                                                                "type": "string"
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "type": "string",
                                                    "pattern": "^[^<>]*$",
                                                    "maxLength": 255,
                                                    "minLength": 1
                                                }
                                            ]
                                        },
                                        "endPositions": {
                                            "type": "array",
                                            "items": {
                                                "anyOf": [
                                                    {
                                                        "description": "Actually, each even item is a string, each odd item is an integer",
                                                        "type": "array",
                                                        "minItems": 1,
                                                        "items": {
                                                            "anyOf": [
                                                                {
                                                                    "type": "integer"
                                                                },
                                                                {
                                                                    "type": "string"
                                                                }
                                                            ]
                                                        }
                                                    },
                                                    {
                                                        "type": "string",
                                                        "pattern": "^[^<>]*$",
                                                        "maxLength": 255,
                                                        "minLength": 1
                                                    }
                                                ]
                                            }
                                        },
                                        "blockPosition": {
                                            "anyOf": [
                                                {
                                                    "description": "Actually, each even item is a string, each odd item is an integer",
                                                    "type": "array",
                                                    "items": {
                                                        "anyOf": [
                                                            {
                                                                "type": "integer"
                                                            },
                                                            {
                                                                "type": "string"
                                                            }
                                                        ]
                                                    }
                                                },
                                                {
                                                    "type": "string",
                                                    "pattern": "^[^<>]*$",
                                                    "maxLength": 255,
                                                    "minLength": 1
                                                }
                                            ]
                                        }
                                    },
                                    "additionalProperties": false
                                },
                                "forceJobAdmission": {
                                    "type": "boolean"
                                }
                            },
                            "additionalProperties": false
                        }
                    }
                }
            }
        }
    },
    "additionalProperties": false
}