{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A comment on a Coffee & Code story or to another comment.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "reply": {
            "ref": "#reply",
            "type": "ref"
          },
          "subject": {
            "ref": "#subject",
            "type": "ref"
          },
          "text": {
            "maxGraphemes": 3000,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "reply": {
      "properties": {
        "parent": {
          "ref": "#subject",
          "type": "ref"
        }
      },
      "required": [
        "parent"
      ],
      "type": "object"
    },
    "subject": {
      "properties": {
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "id": "cc.coffeencode.comment",
  "lexicon": 1
}
