{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/allratestoday-com/json-schema/allratestoday-com-cb-pair-dated-schema.json",
  "title": "CbPairDated",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/allratestoday-com-central-bank-rates-api-openapi.yml#/components/schemas/CbPairDated",
  "allOf": [
    {
      "$ref": "#/$defs/CbPair"
    },
    {
      "type": "object",
      "properties": {
        "requested_date": {
          "type": "string",
          "format": "date"
        },
        "published_on_requested_date": {
          "type": "boolean"
        }
      }
    }
  ],
  "$defs": {
    "CbPair": {
      "type": "object",
      "properties": {
        "bank": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "rate_date": {
          "type": "string",
          "format": "date"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        },
        "rate": {
          "type": "number",
          "format": "double"
        },
        "rate_type": {
          "type": "string"
        },
        "derived": {
          "type": "boolean",
          "description": "True when not directly published by the bank (inverse or cross-computed)"
        },
        "method": {
          "type": "string",
          "enum": [
            "published",
            "inverse",
            "cross"
          ]
        },
        "disclaimer": {
          "type": "string"
        }
      }
    }
  }
}