{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:Comment",
  "title": "Comment",
  "description": "A comment on an item - for example, a comment on a blog post. The comment's content is expressed via the [[text]] property, and its topic via [[about]], properties shared with all CreativeWorks.",
  "type": "object",
  "allOf": [
    {
      "description": "The most generic kind of creative work, including books, movies, photographs, software programs, etc.",
      "$ref": "schema:CreativeWork"
    }
  ],
  "properties": {
    "downvoteCount": {
      "description": "The number of downvotes this question, answer or comment has received from the community.",
      "type": "integer"
    },
    "parentItem": {
      "description": "The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it.",
      "anyOf": [{ "$ref": "schema:Comment" }, { "$ref": "schema:CreativeWork" }]
    },
    "sharedContent": {
      "description": "A CreativeWork such as an image, video, or audio clip shared as part of this posting.",
      "oneOf": [
        { "$ref": "schema:CreativeWork" },
        { "type": "array", "items": { "$ref": "schema:CreativeWork" } }
      ]
    },
    "upvoteCount": {
      "description": "The number of upvotes this question, answer or comment has received from the community.",
      "type": "integer"
    }
  }
}
