Hippomundo Enterprise API
Schemas

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.

FieldTypeDescription
awarded_prize_money_eur_centsinteger (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: 0.

classResultClass · required

Additional properties: false.

competitionCompetition · required

Thin competition search result. Competitions carry no date; year and date filtering exists on editions.

disciplinestring · required

Open set; documented values are jumping, dressage and eventing.

Known values (open set): ["jumping","dressage","eventing"].

editionResultEdition · required

Additional properties: false.

horseResultHorse · required

Additional properties: false.

idinteger (int64) · required

Public result ID.

performanceobject · required

Discipline-tagged performance object, narrowed by the result variant above.

Additional properties: true.

placeinteger or null · required

Numbered placing, or null when unplaced.

Minimum: 1.

riderResultRider · required

Additional properties: false.

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"
}