{
    "id": "https://xshl.org/schemas/1.1/content/section/note.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Note",
    "name": "note-section-content",
    "version": "1.2.7",
    "description": "A representation object of note",
    "type": "object",
    "additionalProperties": false,
    "required": ["@value", "target", "version"],
    "properties": {
        "@context": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/context.json"
        },
        "@type": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/type.json"
        },
        "@id": { "$ref": "https://xshl.org/schemas/1.1/definitions/id.json" },
        "target": {
            "$ref": "https://xshl.org/schemas/1.1/definitions/target.json"
        },
        "created": { "type": "string", "format": "date-time" },
        "modified": { "type": "string", "format": "date-time" },
        "version": { "type": "string" },
        "@value": {
            "type": "object",
            "additionalProperties": false,
            "required": ["preview"],
            "properties": {
                "files": {
                    "type": "array",
                    "items": {
                        "$ref": "https://xshl.org/schemas/1.1/definitions/file.json"
                    },
                    "minItems": 1,
                    "uniqueItems": true
                },
                "preview": {
                    "$ref": "https://xshl.org/schemas/1.1/content/containers/quote.json"
                },
                "payloads": {
                    "type": "array",
                    "items": {
                        "anyOf": [
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/section/cope.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/chunk/tag.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/chunk/person.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/containers/media.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/chunk/text.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/definitions/target.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/containers/quote.json"
                            },
                            {
                                "$ref": "https://xshl.org/schemas/1.1/content/chunk/organization.json"
                            }
                        ]
                    },
                    "minItems": 1
                },
                "extra": {
                    "type": "object"
                }
            }
        }
    }
}
