football.tools.formguide.preferences

tools.football

Documentation

main record

No description available.

Record Key literal:self Fixed literal value

Properties

createdAt string datetime Required

When the preferences record was first created.

favoriteTeams array of ref #favoriteTeam Optional

Teams the user follows. Order is significant — clients should preserve it for display.

maxLength: 100 items
updatedAt string datetime Optional

When the preferences record was last modified.

View raw schema
{
  "key": "literal:self",
  "record": {
    "properties": {
      "createdAt": {
        "description": "When the preferences record was first created.",
        "format": "datetime",
        "type": "string"
      },
      "favoriteTeams": {
        "description": "Teams the user follows. Order is significant — clients should preserve it for display.",
        "items": {
          "ref": "#favoriteTeam",
          "type": "ref"
        },
        "maxLength": 100,
        "type": "array"
      },
      "updatedAt": {
        "description": "When the preferences record was last modified.",
        "format": "datetime",
        "type": "string"
      }
    },
    "required": [
      "createdAt"
    ],
    "type": "object"
  },
  "type": "record"
}
favoriteTeam object

A team the user follows, scoped to a specific league.

Properties

addedAt string datetime Optional

When this team was added to favorites.

league string Required

League slug as used in the Form Guide URL (e.g. mls, nwsl, epl).

maxLength: 64 bytes
name string Optional

Denormalized display name at the time the team was added. Hint for consumers; the league/slug pair is the canonical key.

maxLength: 200 bytes
slug string Required

Team slug — lowercased, hyphenated form of the team's display name. Unique within a league.

maxLength: 128 bytes
View raw schema
{
  "description": "A team the user follows, scoped to a specific league.",
  "properties": {
    "addedAt": {
      "description": "When this team was added to favorites.",
      "format": "datetime",
      "type": "string"
    },
    "league": {
      "description": "League slug as used in the Form Guide URL (e.g. mls, nwsl, epl).",
      "maxLength": 64,
      "type": "string"
    },
    "name": {
      "description": "Denormalized display name at the time the team was added. Hint for consumers; the league/slug pair is the canonical key.",
      "maxLength": 200,
      "type": "string"
    },
    "slug": {
      "description": "Team slug — lowercased, hyphenated form of the team's display name. Unique within a league.",
      "maxLength": 128,
      "type": "string"
    }
  },
  "required": [
    "league",
    "slug"
  ],
  "type": "object"
}

Lexicon Garden

@