{
    "type": "object",
    "properties": {
        "_id": {
            "type": "integer"
        },
        "link": {
            "type": "string"
        },
        "title": {
            "type": "string"
        },
        "excerpt": {
            "type": "string"
        },
        "note": {
            "type": "string"
        },
        "type": {
            "type": "string"
        },
        "user": {
            "type": "object",
            "properties": {
                "$ref": {
                    "type": "string"
                },
                "$id": {
                    "type": "integer"
                }
            },
            "required": [
                "$ref",
                "$id"
            ]
        },
        "cover": {
            "type": "string"
        },
        "tags": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "removed": {
            "type": "boolean"
        },
        "collection": {
            "type": "object",
            "properties": {
                "$ref": {
                    "type": "string"
                },
                "$id": {
                    "type": "integer"
                },
                "oid": {
                    "type": "integer"
                }
            },
            "required": [
                "$ref",
                "$id"
            ]
        },
        "media": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string"
                    },
                    "link": {
                        "type": "string"
                    }
                },
                "required": [
                    "type",
                    "link"
                ]
            }
        },
        "created": {
            "type": "string"
        },
        "lastUpdate": {
            "type": "string"
        },
        "domain": {
            "type": "string"
        },
        "creatorRef": {
            "type": "object",
            "properties": {
                "_id": {
                    "type": "integer"
                },
                "avatar": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                }
            },
            "required": [
                "_id",
                "avatar",
                "name",
                "email"
            ]
        },
        "sort": {
            "type": "integer"
        },
        "highlights": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "text": {
                        "type": "string"
                    },
                    "note": {
                        "type": "string"
                    },
                    "color": {
                        "type": "string"
                    },
                    "created": {
                        "type": "string"
                    },
                    "lastUpdate": {
                        "type": "string"
                    },
                    "creatorRef": {
                        "type": "integer"
                    },
                    "_id": {
                        "type": "string"
                    }
                },
                "required": [
                    "text",
                    "note",
                    "color",
                    "created",
                    "lastUpdate",
                    "creatorRef",
                    "_id"
                ]
            }
        },
        "collectionId": {
            "type": "integer"
        },
        "important": {
            "type": "boolean"
        },
        "reminder": {
            "type": "object",
            "properties": {
                "date": {
                    "type": "null"
                }
            },
            "required": [
                "date"
            ]
        }
    },
    "required": [
        "_id",
        "link",
        "title",
        "excerpt",
        "note",
        "type",
        "user",
        "cover",
        "tags",
        "removed",
        "collection",
        "media",
        "created",
        "lastUpdate",
        "domain",
        "sort",
        "highlights",
        "collectionId"
    ],
    "version": 1
}
