{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/the-racing-api/refs/heads/main/json-schema/the-racing-api-app__models__na_entries__-race-schema.json", "title": "app__models__na_entries__Race", "description": "app__models__na_entries__Race schema from The Racing API", "type": "object", "properties": { "age_restriction": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Age Restriction" }, "age_restriction_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Age Restriction Description" }, "breed": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Breed" }, "changes": { "anyOf": [ { "items": { "$ref": "#/components/schemas/Change" }, "type": "array" }, { "type": "null" } ], "title": "Changes" }, "course_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Course Type" }, "course_type_class": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Course Type Class" }, "distance_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Distance Description" }, "distance_unit": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Distance Unit" }, "distance_value": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "null" } ], "title": "Distance Value" }, "grade": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Grade" }, "handicapper_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Handicapper Name" }, "has_finished": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Has Finished" }, "has_results": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Has Results" }, "is_cancelled": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "title": "Is Cancelled" }, "max_claim_price": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "null" } ], "title": "Max Claim Price" }, "min_claim_price": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "null" } ], "title": "Min Claim Price" }, "mtp": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "title": "Mtp" }, "post_time": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Post Time" }, "post_time_long": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Post Time Long" }, "purse": { "anyOf": [ { "type": "integer" }, { "type": "string" }, { "type": "null" } ], "title": "Purse" }, "race_class": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Race Class" }, "race_key": { "$ref": "#/components/schemas/RaceKey" }, "race_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Race Name" }, "race_pools": { "anyOf": [ { "items": { "$ref": "#/components/schemas/RacePool" }, "type": "array" }, { "type": "null" } ], "title": "Race Pools" }, "race_restriction": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Race Restriction" }, "race_restriction_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Race Restriction Description" }, "race_type": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Race Type" }, "race_type_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Race Type Description" }, "runners": { "items": { "$ref": "#/components/schemas/app__models__na_entries__Runner" }, "type": "array", "title": "Runners" }, "sex_restriction": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sex Restriction" }, "sex_restriction_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Sex Restriction Description" }, "surface_description": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Surface Description" }, "time_zone": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Time Zone" }, "tote_track_id": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Tote Track Id" }, "track_condition": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Track Condition" }, "track_name": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Track Name" } }, "required": [ "race_key", "runners" ] }