com.professorbutts.sports.league
Record key is the league code used as the first part of every slug, e.g. 'nfl', 'cfb', 'cfb-fcs', 'f1', 'nascar-cup', 'eng-1'. Lowercase a-z, 0-9 and '-'. Never reused once minted.
Details · record, key any
| Kind | record |
|---|---|
| Record key | any |
| Authority | sports.professorbutts.com |
| Commit rev | 3n2pbxan2jk2i |
| Indexed |
Showing version bafyreig6jyll44p4hmtat5fvnzifmp6dldwkwifha4stjd6ffizjcfzz44. Show the latest
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Record key is the league code used as the first part of every slug, e.g. 'nfl', 'cfb', 'cfb-fcs', 'f1', 'nascar-cup', 'eng-1'. Lowercase a-z, 0-9 and '-'. Never reused once minted.",
"key": "any",
"record": {
"properties": {
"aliases": {
"description": "Other names people use, e.g. 'Premier League', 'EPL'.",
"items": {
"maxLength": 64,
"type": "string"
},
"maxLength": 16,
"type": "array"
},
"country": {
"description": "ISO 3166-1 alpha-3, when the league is national.",
"maxLength": 3,
"type": "string"
},
"externalIds": {
"items": {
"ref": "com.professorbutts.sports.defs#externalId",
"type": "ref"
},
"maxLength": 16,
"type": "array"
},
"gender": {
"knownValues": [
"men",
"women",
"mixed"
],
"maxLength": 16,
"type": "string"
},
"level": {
"knownValues": [
"pro",
"college",
"international",
"minor",
"amateur"
],
"maxLength": 32,
"type": "string"
},
"name": {
"description": "e.g. 'NCAA Division I FCS Football'.",
"maxLength": 128,
"type": "string"
},
"parent": {
"description": "Wider league this is part of, e.g. 'cfb-fcs' points at 'cfb'. Teams that move between divisions keep their slug under the parent code.",
"format": "at-uri",
"type": "string"
},
"shortName": {
"description": "e.g. 'FCS'.",
"maxLength": 32,
"type": "string"
},
"sport": {
"knownValues": [
"football",
"basketball",
"baseball",
"hockey",
"soccer",
"rugby",
"golf",
"motorsport",
"cricket"
],
"maxLength": 64,
"type": "string"
},
"teamPrefix": {
"description": "League code used in this league's team slugs, when it differs from the record key, e.g. 'cfb' for 'cfb-fcs'.",
"maxLength": 32,
"type": "string"
},
"updatedAt": {
"format": "datetime",
"type": "string"
}
},
"required": [
"name",
"sport",
"updatedAt"
],
"type": "object"
},
"type": "record"
}
},
"description": "A league, tour, series or college division. Gives every league code used in team, game and leaderboard slugs a record of its own, so others can look codes up.",
"id": "com.professorbutts.sports.league",
"lexicon": 1
}