{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/the-racing-api/json-schema/the-racing-api-app-models-aus-races-race-schema.json",
  "title": "Race",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/the-racing-api-australia-api-openapi.yml#/components/schemas/app__models__aus_races__Race",
  "properties": {
    "course": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Course"
    },
    "course_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Course Id"
    },
    "date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Date"
    },
    "distance": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Distance"
    },
    "going": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Going"
    },
    "is_jump_out": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Jump Out",
      "default": false
    },
    "is_trial": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Trial",
      "default": false
    },
    "meet_id": {
      "type": "string",
      "title": "Meet Id"
    },
    "off_time": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Off Time"
    },
    "prizes": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prizes"
    },
    "prize_total": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Prize Total"
    },
    "class": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Class"
    },
    "race_conditions": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Race Conditions"
    },
    "race_group": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Race Group"
    },
    "race_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Race Name"
    },
    "race_number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Race Number"
    },
    "race_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Race Status"
    },
    "state": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "State"
    },
    "runners": {
      "items": {
        "$ref": "#/$defs/app__models__aus_races__Runner"
      },
      "type": "array",
      "title": "Runners"
    },
    "winning_time": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Winning Time"
    },
    "winning_time_hundredths": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Winning Time Hundredths"
    }
  },
  "type": "object",
  "$defs": {
    "RunnerStats": {
      "properties": {
        "career_prize": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Career Prize"
        },
        "career_win_percent": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Career Win Percent"
        },
        "career_place_percent": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Career Place Percent"
        },
        "course_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "course_distance_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "distance_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "ground_firm_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "ground_good_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "ground_heavy_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "ground_soft_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "ground_aw_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "jockey_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "jumps_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_raced": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Raced"
        },
        "last_ten_races_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_twelve_months_stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStatsBreakdown"
            },
            {
              "type": "null"
            }
          ]
        },
        "last_won": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Won"
        },
        "max_winning_distance": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Winning Distance"
        },
        "min_winning_distance": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Winning Distance"
        }
      },
      "type": "object",
      "title": "RunnerStats"
    },
    "RunnerStatsBreakdown": {
      "properties": {
        "total": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Total"
        },
        "first": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "First"
        },
        "second": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Second"
        },
        "third": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Third"
        }
      },
      "type": "object",
      "title": "RunnerStatsBreakdown"
    },
    "app__models__aus_races__Runner": {
      "properties": {
        "horse_id": {
          "type": "string",
          "title": "Horse Id"
        },
        "horse": {
          "type": "string",
          "title": "Horse"
        },
        "age": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Age"
        },
        "comment": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Comment"
        },
        "colour": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Colour"
        },
        "dam": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dam"
        },
        "dam_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dam Id"
        },
        "draw": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Draw"
        },
        "form": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Form"
        },
        "jockey": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jockey"
        },
        "jockey_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jockey Id"
        },
        "jockey_claim": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Jockey Claim"
        },
        "margin": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Margin"
        },
        "number": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Number"
        },
        "odds": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/app__models__aus_races__RunnerOdds"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Odds"
        },
        "owner": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Owner"
        },
        "position": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Position"
        },
        "prize": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Prize"
        },
        "rating": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rating"
        },
        "scratched": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Scratched"
        },
        "sex": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sex"
        },
        "silk_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Silk Url"
        },
        "sire": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sire"
        },
        "sire_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sire Id"
        },
        "sp": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sp"
        },
        "stats": {
          "anyOf": [
            {
              "$ref": "#/$defs/RunnerStats"
            },
            {
              "type": "null"
            }
          ]
        },
        "trainer": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Trainer"
        },
        "trainer_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Trainer Id"
        },
        "weight": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Weight"
        }
      },
      "type": "object",
      "required": [
        "horse_id",
        "horse"
      ],
      "title": "Runner"
    },
    "app__models__aus_races__RunnerOdds": {
      "properties": {
        "bookmaker": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Bookmaker"
        },
        "win_odds": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Win Odds"
        },
        "place_odds": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Place Odds"
        }
      },
      "type": "object",
      "title": "RunnerOdds"
    }
  }
}