{
    "title": "release",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.inventory.release.ReleaseFilter",
    "type": "object",
    "anyOf": [
        {
            "required": [
                "update"
            ]
        },
        {
            "required": [
                "delete"
            ]
        }
    ],
    "properties": {
        "update": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.inventory.common.RequestFilter",
                "type": "object",
                "anyOf": [
                    {
                        "required": [
                            "id"
                        ]
                    },
                    {
                        "required": [
                            "path",
                            "objectType"
                        ]
                    }
                ],
                "properties": {
                    "controllerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    },
                    "id": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "path": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "objectType": {
                        "javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
                        "type": "string",
                        "enum": [
                            "FOLDER",
                            "WORKFLOW",
                            "JOBCLASS",
                            "JOBRESOURCE",
                            "LOCK",
                            "NOTICEBOARD",
                            "FILEORDERSOURCE",
                            "WORKINGDAYSCALENDAR",
                            "NONWORKINGDAYSCALENDAR",
                            "SCHEDULE",
                            "INCLUDESCRIPT",
                            "JOBTEMPLATE"
                        ]
                    },
                    "auditLog": {
                        "javaType": "com.sos.joc.model.audit.AuditParams",
                        "type": "object",
                        "properties": {
                            "comment": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            },
                            "timeSpent": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "ticketLink": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            }
                        }
                    }
                }
            }
        },
        "delete": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.inventory.common.RequestFilter",
                "type": "object",
                "anyOf": [
                    {
                        "required": [
                            "id"
                        ]
                    },
                    {
                        "required": [
                            "path",
                            "objectType"
                        ]
                    }
                ],
                "properties": {
                    "controllerId": {
                        "type": "string",
                        "pattern": "^[^/\\<>?:\"|*]*$",
                        "maxLength": 100
                    },
                    "id": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "path": {
                        "type": "string",
                        "pattern": "^[^<>]*$",
                        "maxLength": 255
                    },
                    "objectType": {
                        "javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
                        "type": "string",
                        "enum": [
                            "FOLDER",
                            "WORKFLOW",
                            "JOBCLASS",
                            "JOBRESOURCE",
                            "LOCK",
                            "NOTICEBOARD",
                            "FILEORDERSOURCE",
                            "WORKINGDAYSCALENDAR",
                            "NONWORKINGDAYSCALENDAR",
                            "SCHEDULE",
                            "INCLUDESCRIPT",
                            "JOBTEMPLATE"
                        ]
                    },
                    "auditLog": {
                        "javaType": "com.sos.joc.model.audit.AuditParams",
                        "type": "object",
                        "properties": {
                            "comment": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            },
                            "timeSpent": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "ticketLink": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255
                            }
                        }
                    }
                }
            }
        },
        "addOrdersDateFrom": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        },
        "includeLate": {
            "type": "boolean",
            "default": false
        },
        "auditLog": {
            "javaType": "com.sos.joc.model.audit.AuditParams",
            "type": "object",
            "properties": {
                "comment": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                },
                "timeSpent": {
                    "type": "integer",
                    "minimum": 0
                },
                "ticketLink": {
                    "type": "string",
                    "pattern": "^[^<>]*$",
                    "maxLength": 255
                }
            }
        }
    }
}