{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/StartingLineups",
  "title": "StartingLineups",
  "properties": {
    "GameID": {
      "type": "integer",
      "description": "The unique ID of the game tied to the StartingLineups"
    },
    "Season": {
      "type": "integer",
      "description": "The MLB season of the game"
    },
    "SeasonType": {
      "type": "integer",
      "description": "The type of season that this record corresponds to (1=Regular Season; 2=Preseason; 3=Postseason; 4=Offseason; 5=AllStar)"
    },
    "Day": {
      "type": [
        "string",
        "null"
      ],
      "description": "The day of the game"
    },
    "DateTime": {
      "type": [
        "string",
        "null"
      ],
      "description": "The date and time of the game in US Eastern Time"
    },
    "Status": {
      "type": [
        "string",
        "null"
      ],
      "description": "Indicates the game's status. Possible values include: Scheduled; InProgress; Final; Suspended; Delayed; Postponed; Canceled; Forfeit; NotNecessary."
    },
    "HomeTeamID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The unique ID of the home team tied to these StartingLineups"
    },
    "HomeTeam": {
      "type": [
        "string",
        "null"
      ],
      "description": "The abbreviation [Key] of the Home Team"
    },
    "AwayTeamID": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The unique TeamID of the away team"
    },
    "AwayTeam": {
      "type": [
        "string",
        "null"
      ],
      "description": "The abbreviation [Key] of the away team"
    },
    "HomeStartingPitcher": {
      "$ref": "#/components/schemas/Lineup",
      "description": "Home team starting pitcher. Note: this is a probable pitcher until confirmed field = TRUE."
    },
    "HomeBattingLineup": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Lineup"
      },
      "description": "The batting lineup of the home team"
    },
    "AwayStartingPitcher": {
      "$ref": "#/components/schemas/Lineup",
      "description": "Away team starting pitcher. Note: this is a probable pitcher until confirmed field = TRUE."
    },
    "AwayBattingLineup": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Lineup"
      },
      "description": "Away team batting lineup for the game"
    },
    "HomeTeamOpener": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates whether the home team will use an Opener as the starting pitcher. NOTE: An opener is a pitcher (typically a relief pitcher) that is only scheduled to pitch the first 1-3 innings of the game."
    },
    "AwayTeamOpener": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates whether the away team will use an Opener as the starting pitcher. NOTE: An opener is a pitcher (typically a relief pitcher) that is only scheduled to pitch the first 1-3 innings of the game."
    }
  }
}