{
    "title": "common inventory request filter",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.inventory.delete.RequestFilters",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.inventory.common.RequestFilters",
        "type": "object",
        "required": [
            "objects"
        ],
        "properties": {
            "objects": {
                "type": "array",
                "uniqueItems": true,
                "minItems": 1,
                "items": {
                    "javaType": "com.sos.joc.model.inventory.common.RequestFilter",
                    "type": "object",
                    "anyOf": [
                        {
                            "required": [
                                "path",
                                "objectType"
                            ]
                        },
                        {
                            "required": [
                                "id"
                            ]
                        }
                    ],
                    "properties": {
                        "controllerId": {
                            "type": "string",
                            "pattern": "^[^/\\<>?!&:;()\"|*^]*$",
                            "maxLength": 100
                        },
                        "id": {
                            "type": "number",
                            "format": "utc-millisec",
                            "minimum": 0
                        },
                        "path": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "objectType": {
                            "javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
                            "type": "string",
                            "enum": [
                                "FOLDER",
                                "WORKFLOW",
                                "JOBCLASS",
                                "JOBRESOURCE",
                                "LOCK",
                                "NOTICEBOARD",
                                "FILEORDERSOURCE",
                                "WORKINGDAYSCALENDAR",
                                "NONWORKINGDAYSCALENDAR",
                                "SCHEDULE",
                                "INCLUDESCRIPT",
                                "JOBTEMPLATE",
                                "DEPLOYMENTDESCRIPTOR",
                                "DESCRIPTORFOLDER"
                            ]
                        },
                        "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
                                }
                            }
                        }
                    }
                }
            },
            "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
                    }
                }
            }
        }
    },
    "required": [
        "objects"
    ],
    "properties": {
        "cancelOrdersDateFrom": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255
        }
    }
}