{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "properties": {
        "author": {
            "properties": {
                "email": {
                    "oneOf": [
                        {
                            "enum": [
                                ""
                            ]
                        },
                        {
                            "_format": "email"
                        }
                    ],
                    "type": "string"
                },
                "name": {
                    "maxLength": 1000,
                    "minLength": 1,
                    "type": "string"
                }
            },
            "required": [
                "name",
                "email"
            ],
            "type": "object"
        },
        "documents": {
            "items": {
                "properties": {
                    "filetype": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "path": {
                        "type": "string"
                    }
                },
                "required": [
                    "filetype",
                    "name",
                    "path"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "id": {
            "type": "string"
        },
        "lastChanged": {
            "type": "integer"
        },
        "lastChangedBy": {
            "properties": {
                "email": {
                    "oneOf": [
                        {
                            "enum": [
                                ""
                            ]
                        },
                        {
                            "_format": "email"
                        }
                    ],
                    "type": "string"
                },
                "name": {
                    "maxLength": 1000,
                    "minLength": 0,
                    "type": "string"
                }
            },
            "required": [
                "name",
                "email"
            ],
            "type": "object"
        },
        "text": {
            "type": "string"
        },
        "title": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
        }
    },
    "required": [
        "id",
        "author",
        "lastChangedBy",
        "lastChanged",
        "title",
        "text",
        "documents"
    ],
    "type": "object"
}