{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pipeliner/json-schema/pipeliner-currency-schema.json",
  "title": "Currency",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pipeliner-currency-api-openapi.yml#/components/schemas/Currency",
  "properties": {
    "is_delete_protected": {
      "type": "boolean",
      "description": "Tells if the entity instance is protected against delete (Entities that need to be present in the system at any time). Delete action still may fail if entity is deletable, due some other additional validations.",
      "readOnly": true
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier of entity.",
      "readOnly": true
    },
    "is_deleted": {
      "type": "boolean",
      "description": "Specifies if the entity is considered deleted.",
      "readOnly": true
    },
    "modified": {
      "type": "string",
      "format": "date-time",
      "description": "Last modification time.",
      "readOnly": true
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Creation time.",
      "readOnly": true
    },
    "code": {
      "type": "string",
      "description": "Name of the entity and its default text representation."
    },
    "is_base": {
      "type": "boolean",
      "description": "True for the space's base currency. There is exactly one base currency per space and it cannot be deleted.",
      "readOnly": true
    },
    "symbol": {
      "type": "string",
      "description": "Display symbol of the currency (e.g. \"$\", \"€\"). Used when formatting amounts in the UI."
    },
    "revision": {
      "type": "integer",
      "format": "int32",
      "description": "Revision when entity was lastly changed."
    },
    "currency_exchange_rates": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri",
        "description": "Relation to CurrencyExchangeRate. By default it is returned as URI to related resource. Using parameter 'expand', it will return full entity. See: 'CurrencyExchangeRate' object for properties."
      },
      "description": "Exchange rates configured for this currency, one per exchange rate list (effective period)."
    }
  },
  "required": [
    "is_delete_protected",
    "id",
    "code",
    "currency_exchange_rates"
  ]
}