{
    "title": "read note",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.joc.model.note.NoteResponse",
    "type": "object",
    "extends": {
        "javaType": "com.sos.joc.model.note.common.Note",
        "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
        },
        "properties": {
            "noteId": {
                "type": "number",
                "format": "utc-millisec",
                "minimum": 0
            },
            "path": {
                "description": "absolute path of an object.",
                "type": "string",
                "pattern": "^(/|(/[^/\\\\<>?:\"|*]+)+)$",
                "maxLength": 255,
                "minLength": 1
            },
            "metadata": {
                "javaType": "com.sos.joc.model.note.common.Metadata",
                "type": "object",
                "properties": {
                    "created": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "createdBy": {
                        "javaType": "com.sos.joc.model.note.common.Author",
                        "type": "object",
                        "properties": {
                            "userName": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255,
                                "minLength": 1
                            }
                        },
                        "additionalProperties": false
                    },
                    "modified": {
                        "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                        "type": "string",
                        "format": "date-time"
                    },
                    "modifiedBy": {
                        "javaType": "com.sos.joc.model.note.common.Author",
                        "type": "object",
                        "properties": {
                            "userName": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255,
                                "minLength": 1
                            }
                        },
                        "additionalProperties": false
                    },
                    "postCount": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "participantCount": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "severity": {
                        "javaType": "com.sos.joc.model.note.common.Severity",
                        "type": "string",
                        "enum": [
                            "CRITICAL",
                            "HIGH",
                            "NORMAL",
                            "LOW",
                            "INFO"
                        ],
                        "default": "NORMAL"
                    },
                    "displayPreferences": {
                        "javaType": "com.sos.joc.model.note.common.DisplayPreferences",
                        "type": "object",
                        "properties": {
                            "width": {
                                "type": "integer",
                                "minimum": 0
                            },
                            "height": {
                                "type": "integer",
                                "minimum": 0
                            }
                        },
                        "additionalProperties": false
                    }
                },
                "additionalProperties": false
            },
            "posts": {
                "type": "array",
                "items": {
                    "javaType": "com.sos.joc.model.note.common.Post",
                    "type": "object",
                    "properties": {
                        "postId": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "content": {
                            "type": "string",
                            "pattern": "^(?s)((?!<script( |>)|<svg/on).)*$"
                        },
                        "severity": {
                            "javaType": "com.sos.joc.model.note.common.Severity",
                            "type": "string",
                            "enum": [
                                "CRITICAL",
                                "HIGH",
                                "NORMAL",
                                "LOW",
                                "INFO"
                            ],
                            "default": "NORMAL"
                        },
                        "author": {
                            "javaType": "com.sos.joc.model.note.common.Author",
                            "type": "object",
                            "properties": {
                                "userName": {
                                    "type": "string",
                                    "pattern": "^[^<>]*$",
                                    "maxLength": 255,
                                    "minLength": 1
                                }
                            },
                            "additionalProperties": false
                        },
                        "posted": {
                            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    "additionalProperties": false
                }
            },
            "participants": {
                "type": "array",
                "items": {
                    "javaType": "com.sos.joc.model.note.common.Participant",
                    "type": "object",
                    "extends": {
                        "javaType": "com.sos.joc.model.note.common.Author",
                        "type": "object",
                        "properties": {
                            "userName": {
                                "type": "string",
                                "pattern": "^[^<>]*$",
                                "maxLength": 255,
                                "minLength": 1
                            }
                        },
                        "additionalProperties": false
                    },
                    "properties": {
                        "postCount": {
                            "type": "integer",
                            "minimum": 0
                        },
                        "modified": {
                            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                            "type": "string",
                            "format": "date-time"
                        }
                    },
                    "additionalProperties": false
                }
            }
        },
        "additionalProperties": false
    },
    "properties": {
        "deliveryDate": {
            "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
            "type": "string",
            "format": "date-time"
        }
    },
    "additionalProperties": false
}