{
    "title": "add post",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.note.Notifications",
    "type": "object",
    "required": [
        "deliveryDate",
        "notifications"
    ],
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        },
        "notifications": {
            "type": "array",
            "items": {
                "javaType": "com.sos.joc.model.note.Notification",
                "type": "object",
                "extends": {
                    "javaType": "com.sos.joc.model.note.common.NoteIdentifier",
                    "type": "object",
                    "required": [
                        "name",
                        "objectType"
                    ],
                    "properties": {
                        "name": {
                            "type": "string",
                            "pattern": "^[^<>]*$",
                            "maxLength": 255,
                            "minLength": 1
                        },
                        "objectType": {
                            "javaType": "com.sos.joc.model.inventory.common.ConfigurationType",
                            "type": "string",
                            "enum": [
                                "WORKFLOW",
                                "JOBCLASS",
                                "JOBRESOURCE",
                                "LOCK",
                                "NOTICEBOARD",
                                "FILEORDERSOURCE",
                                "WORKINGDAYSCALENDAR",
                                "NONWORKINGDAYSCALENDAR",
                                "SCHEDULE",
                                "INCLUDESCRIPT",
                                "JOBTEMPLATE",
                                "REPORT"
                            ]
                        }
                    },
                    "additionalProperties": false
                },
                "required": [
                    "noteId",
                    "name",
                    "path",
                    "objectType"
                ],
                "properties": {
                    "noteId": {
                        "type": "number",
                        "format": "utc-millisec",
                        "minimum": 0
                    },
                    "path": {
                        "description": "absolute path of an object.",
                        "type": "string",
                        "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                        "maxLength": 255,
                        "minLength": 1
                    },
                    "severity": {
                        "javaType": "com.sos.joc.model.note.common.Severity",
                        "type": "string",
                        "enum": [
                            "CRITICAL",
                            "HIGH",
                            "NORMAL",
                            "LOW",
                            "INFO"
                        ],
                        "default": "NORMAL"
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}