{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exchangerate-dev/json-schema/exchangerate-dev-currencies-response-schema.json",
  "title": "CurrenciesResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exchangerate-dev-currencies-api-openapi.yml#/components/schemas/CurrenciesResponse",
  "properties": {
    "result": {
      "type": "string",
      "title": "Result",
      "default": "success"
    },
    "currencies": {
      "items": {
        "$ref": "#/$defs/CurrencyInfo"
      },
      "type": "array",
      "title": "Currencies"
    }
  },
  "type": "object",
  "required": [
    "currencies"
  ],
  "$defs": {
    "CurrencyInfo": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "type": {
          "type": "string",
          "title": "Type",
          "default": "fiat"
        },
        "decimals": {
          "type": "integer",
          "title": "Decimals"
        },
        "minor_units": {
          "type": "integer",
          "title": "Minor Units"
        },
        "is_derived": {
          "type": "boolean",
          "title": "Is Derived"
        },
        "fixed_to_euro": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fixed To Euro",
          "description": "Set only for a currency fixed to the euro (e.g. BGN): its legal units per 1 EUR. Its rates follow the euro at this fixed rate; they are not an independent market rate. Null for every other currency."
        }
      },
      "type": "object",
      "required": [
        "code",
        "name",
        "decimals",
        "minor_units",
        "is_derived"
      ],
      "title": "CurrencyInfo"
    }
  }
}