{
    "id": "https://xshl.org/schemas/1.1/content/section/comments.json",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "title": "Comments",
    "name": "comments-section-content",
    "version": "1.2.0",
    "description": "A representation object of channel comments",
    "type": "object",
    "additionalProperties": false,
    "required": ["@value", "target"],
    "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"},
        "@value": {
            "type": "object",
            "additionalProperties": false,
            "required": ["preview"],
            "properties": {
                "count": {
                    "type": "object",
                    "properties": {
                        "top": {"type": "integer", "minimum": 1},
                        "total": {"type": "integer", "minimum": 1}
                    }
                },
                "files": {
                    "type": "array",
                    "items": {"$ref": "https://xshl.org/schemas/1.1/definitions/file.json"},
                    "minItems": 1,
                    "uniqueItems": true
                },
                "preview": {
                    "type": "array",
                    "items": {"type": "object"},
                    "minItems": 1,
                    "maxItems": 3,
                    "uniqueItems": true
                }
            }
        },
        "version": {"type": "string"}
    }
}