{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Opens or closes an issue. Counts only when written by a maintainer of the issue's project.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "issue": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "reason": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "state": {
            "knownValues": [
              "open",
              "closed"
            ],
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "issue",
          "state",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.issueState",
  "lexicon": 1
}
