{
    "title": "delete notices",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.board.DeleteNotices",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.board.ModifyNotices",
        "type": "object",
        "required": [
            "controllerId",
            "notices"
        ],
        "properties": {
            "controllerId": {
                "type": "string",
                "pattern": "^[^/\\<>?:\"|*]*$",
                "maxLength": 100,
                "minLength": 1
            },
            "notices": {
                "type": "array",
                "uniqueItems": true,
                "minItems": 1,
                "items": {
                    "type": "object",
                    "javaType": "com.sos.joc.model.board.NoticeIdsPerBoard",
                    "required": [
                        "noticeBoardPath"
                    ],
                    "properties": {
                        "noticeBoardPath": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "noticeIds": {
                            "type": "array",
                            "uniqueItems": true,
                            "items": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255,
                                "minLength": 1
                            }
                        }
                    },
                    "additionalProperties": 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
                    }
                }
            }
        },
        "additionalProperties": false
    },
    "anyOf": [
        {
            "required": [
                "controllerId",
                "notices"
            ]
        },
        {
            "required": [
                "controllerId",
                "noticeBoardPath",
                "noticeIds"
            ]
        }
    ],
    "properties": {
        "noticeBoardPath": {
            "type": "string",
            "pattern": "^[^<>]*$",
            "maxLength": 255,
            "minLength": 1
        },
        "noticeIds": {
            "type": "array",
            "uniqueItems": true,
            "minItems": 1,
            "items": {
                "type": "string",
                "minLength": 1
            }
        }
    },
    "additionalProperties": false
}