{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "curated": {
      "description": "A list made for others, e.g. 'Big Ten football'.",
      "type": "token"
    },
    "favorites": {
      "description": "The owner's own teams, people or events to follow; viewers show these first.",
      "type": "token"
    },
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "league": {
            "description": "Optional league code, e.g. cfb, for merging rankings.",
            "maxLength": 64,
            "type": "string"
          },
          "name": {
            "maxLength": 128,
            "type": "string"
          },
          "purpose": {
            "knownValues": [
              "com.professorbutts.sports.list#favorites",
              "com.professorbutts.sports.list#curated",
              "com.professorbutts.sports.list#ranking"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "sport": {
            "description": "Optional sport the list is about, for filtering polls.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "name",
          "purpose",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "ranking": {
      "description": "An ordered list, e.g. 'My top 25'. Items carry position; viewers can merge many fans' rankings into one poll.",
      "type": "token"
    }
  },
  "description": "A list of teams, people or events, kept in the owner's own repo, e.g. 'My teams'. Items are separate listitem records.",
  "id": "com.professorbutts.sports.list",
  "lexicon": 1
}
