{
    "title": "jobs for wizard",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.wizard.Jobs",
    "type": "object",
    "required": [
        "deliveryDate",
        "jobs"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "jobs": {
            "description": "job items without params",
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.wizard.Job",
                "type": "object",
                "required": [
                    "docPath",
                    "assignReference"
                ],
                "properties": {
                    "deliveryDate": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "docPath": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "docName": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "assignReference": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "title": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "javaClass": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "hasRequiredArguments": {
                        "type": "boolean",
                        "default": false
                    },
                    "arguments": {
                        "javaType": "com.sos.inventory.model.jobtemplate.Parameters",
                        "type": "object",
                        "additionalProperties": {
                            "javaType": "com.sos.inventory.model.jobtemplate.Parameter",
                            "type": "object",
                            "required": [
                                "type"
                            ],
                            "properties": {
                                "type": {
                                    "javaType": "com.sos.inventory.model.jobtemplate.ParameterType",
                                    "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"
                                },
                                "description": {
                                    "type": "string",
                                    "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                                },
                                "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
                        }
                    }
                },
                "additionalProperties": false
            }
        }
    }
}