{
  "$defs": {
    "ExchangeRate": {
      "description": "ExchangeRate contains data on the rate to be used when converting amounts from the document's base currency to whatever is defined.",
      "properties": {
        "amount": {
          "$ref": "https://gobl.org/draft-0/num/amount",
          "description": "How much is 1.00 of this currency worth in the documents currency.",
          "title": "Amount"
        },
        "currency": {
          "$ref": "https://gobl.org/draft-0/currency/code",
          "description": "ISO currency code this rate represents.",
          "title": "Currency"
        }
      },
      "required": [
        "currency",
        "amount"
      ],
      "type": "object"
    }
  },
  "$id": "https://gobl.org/draft-0/currency/exchange-rate",
  "$ref": "#/$defs/ExchangeRate",
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}