{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/emporix/main/json-schema/emporix-currency-update-schema.json",
  "title": "currencyUpdate",
  "description": "Represents a single currency update.",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emporix-currency-service-openapi.yml#/components/schemas/currencyUpdate",
  "type": "object",
  "properties": {
    "name": {
      "oneOf": [
        {
          "type": "string",
          "description": "Currency name in the specified language."
        },
        {
          "type": "object",
          "description": "Map of translations in the `key:value` pairs format, where `key` is the language code and `value` is the translation.\nBoth the source and target currency codes must be compliant with the ISO-4217 standard (see https://www.iso.org/iso-4217-currency-codes.html).",
          "additionalProperties": {
            "type": "string"
          }
        }
      ],
      "description": "The currency name. If the `Content-Language` is set to `*`, the field should be provided as a map that contains all translations in the format of `key:value` pairs, where `key` is the language code and `value` is the translation. If the `Content-Language` contains a single language, the translation should be passed as a string value. If the `Content-Language` header is empty, the default language defined in the `Configuration service` is taken.\n\nOnly the languages defined in the system are allowed to be used here. If a language code not defined in the system is provided, the request will be rejected."
    },
    "metadata": {
      "$ref": "#/$defs/updateMetadata"
    }
  },
  "required": [
    "name",
    "metadata"
  ],
  "$defs": {
    "updateMetadata": {
      "type": "object",
      "properties": {
        "version": {
          "minimum": 1,
          "type": "integer",
          "description": "Current version of the updated document."
        }
      },
      "required": [
        "version"
      ]
    }
  }
}