{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hopi-co-uk/json-schema/hopi-co-uk-rates-schema.json",
  "title": "Rates",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hopi-co-uk-openapi.json#/components/schemas/Rates",
  "type": "object",
  "required": [
    "base",
    "rates"
  ],
  "properties": {
    "base": {
      "type": "string",
      "description": "Base currency for every rate below."
    },
    "timestamp": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Unix time the upstream rates were published."
    },
    "rates": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      },
      "description": "ISO 4217 currency code to its value per 1 unit of the base."
    }
  }
}