Result
Response and request schema
Schema
one of: value; value; value; value
Competition result with self-contained horse, rider and hierarchy
summaries. Results require an existing class, edition, competition,
horse and rider. Results can appear while a class is still being
entered. discipline and performance.type always agree.
The three documented variants are strict, while an explicit unknown variant keeps clients forward-compatible with future disciplines.
Additional properties: false.
| Field | Type | Description |
|---|---|---|
awarded_prize_money_eur_cents | integer (int64) or null · required | Prize awarded to this result as integer euro cents, converted at the exchange rate on the class date and frozen. This stable value is not recomputed and is distinct from the class purse. Minimum: |
class | ResultClass · required | Additional properties: |
competition | Competition · required | Thin competition search result. Competitions carry no date; year and date filtering exists on editions. |
discipline | string · required | Open set; documented values are Known values (open set): |
edition | ResultEdition · required | Additional properties: |
horse | ResultHorse · required | Additional properties: |
id | integer (int64) · required | Public result ID. |
performance | object · required | Discipline-tagged performance object, narrowed by the result variant above. Additional properties: |
place | integer or null · required | Numbered placing, or null when unplaced. Minimum: |
rider | ResultRider · required | Additional properties: |
Related schemas: JumpingPerformance, DressagePerformance, EventingPerformance, UnknownPerformance, ResultClass, Competition, ResultEdition, ResultHorse, ResultRider
Complete OpenAPI definition
{
"additionalProperties": false,
"description": "Competition result with self-contained horse, rider and hierarchy\nsummaries. Results require an existing class, edition, competition,\nhorse and rider. Results can appear while a class is still being\nentered. `discipline` and `performance.type` always agree.\n\nThe three documented variants are strict, while an explicit unknown\nvariant keeps clients forward-compatible with future disciplines.\n",
"oneOf": [
{
"properties": {
"discipline": {
"enum": [
"jumping"
],
"type": "string"
},
"performance": {
"$ref": "#/components/schemas/JumpingPerformance"
}
},
"required": [
"discipline",
"performance"
]
},
{
"properties": {
"discipline": {
"enum": [
"dressage"
],
"type": "string"
},
"performance": {
"$ref": "#/components/schemas/DressagePerformance"
}
},
"required": [
"discipline",
"performance"
]
},
{
"properties": {
"discipline": {
"enum": [
"eventing"
],
"type": "string"
},
"performance": {
"$ref": "#/components/schemas/EventingPerformance"
}
},
"required": [
"discipline",
"performance"
]
},
{
"properties": {
"discipline": {
"not": {
"enum": [
"jumping",
"dressage",
"eventing"
]
},
"type": "string"
},
"performance": {
"$ref": "#/components/schemas/UnknownPerformance"
}
},
"required": [
"discipline",
"performance"
]
}
],
"properties": {
"awarded_prize_money_eur_cents": {
"description": "Prize awarded to this result as integer euro cents, converted at the exchange rate on the class date and frozen. This stable value is not recomputed and is distinct from the class purse.",
"format": "int64",
"minimum": 0,
"nullable": true,
"type": "integer"
},
"class": {
"$ref": "#/components/schemas/ResultClass"
},
"competition": {
"$ref": "#/components/schemas/Competition"
},
"discipline": {
"description": "Open set; documented values are `jumping`, `dressage` and `eventing`.",
"type": "string",
"x-known-values": [
"jumping",
"dressage",
"eventing"
]
},
"edition": {
"$ref": "#/components/schemas/ResultEdition"
},
"horse": {
"$ref": "#/components/schemas/ResultHorse"
},
"id": {
"description": "Public result ID.",
"format": "int64",
"type": "integer"
},
"performance": {
"additionalProperties": true,
"description": "Discipline-tagged performance object, narrowed by the result variant above.",
"properties": {
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"place": {
"description": "Numbered placing, or null when unplaced.",
"minimum": 1,
"nullable": true,
"type": "integer"
},
"rider": {
"$ref": "#/components/schemas/ResultRider"
}
},
"required": [
"id",
"discipline",
"horse",
"rider",
"place",
"awarded_prize_money_eur_cents",
"competition",
"edition",
"class",
"performance"
],
"type": "object"
}