{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A review of some tcm code, by its namespace hash: what its writer checked, and what they found.",
      "key": "tid",
      "record": {
        "properties": {
          "body": {
            "description": "What the reviewer checked, and what they found, as markdown.",
            "maxLength": 30000,
            "type": "string"
          },
          "createdAt": {
            "description": "When it was written.",
            "format": "datetime",
            "type": "string"
          },
          "subject": {
            "ref": "#subject",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "body",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "subject": {
      "description": "The code it's about, by its namespace's whole hash; the release it is, and its author, for showing.",
      "properties": {
        "author": {
          "description": "The release's author, if it was announced.",
          "format": "did",
          "type": "string"
        },
        "namespace": {
          "description": "The namespace's whole hash.",
          "maxLength": 128,
          "type": "string"
        },
        "release": {
          "description": "The release it is: package@version.",
          "maxLength": 300,
          "type": "string"
        }
      },
      "required": [
        "namespace"
      ],
      "type": "object"
    }
  },
  "description": "A review of some tcm code.",
  "id": "codes.tcm.review",
  "lexicon": 1
}
