{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record key is the subject record's key, e.g. 'nfl-401772936', so a game's recap is one getRecord away.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "document": {
            "description": "The site.standard.document record that holds the recap. A uri, not a strongRef, because the document can be corrected in place.",
            "format": "at-uri",
            "type": "string"
          },
          "documentCid": {
            "description": "Optional: the document version this was written for.",
            "format": "cid",
            "type": "string"
          },
          "league": {
            "description": "Key of the com.professorbutts.sports.league record, lowercase, e.g. 'nfl'.",
            "maxLength": 32,
            "type": "string"
          },
          "people": {
            "description": "com.professorbutts.sports.person records featured, e.g. a race winner.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 8,
            "type": "array"
          },
          "subject": {
            "description": "The com.professorbutts.sports.game or com.professorbutts.sports.leaderboard record the recap covers.",
            "format": "at-uri",
            "type": "string"
          },
          "subjectCid": {
            "description": "Version of the subject record the recap was written from. Game records are updated in place.",
            "format": "cid",
            "type": "string"
          },
          "teams": {
            "description": "com.professorbutts.sports.team records involved.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 4,
            "type": "array"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          },
          "url": {
            "description": "The recap's public web page.",
            "format": "uri",
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "document",
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Links a recap article (a site.standard.document record) to the game, race or tournament it covers, so indexers can join recaps to the sports graph without reading the article. Same pattern as a domain sidecar next to a standard.site document. The game or leaderboard record's own recap field points the other way.",
  "id": "com.professorbutts.sports.recap",
  "lexicon": 1
}
