Money

candidate

Monetary value in integer minor currency units with ISO 4217 code. Never floating point.

money.jsonCommon Type

Properties(2)

PropertyTypeRequiredFormatDescription
amountintegerValue in smallest currency unit (e.g. 32500 = £325.00)
currencystringISO 4217 three-letter code

Referenced By

The following schemas reference this one:

Raw JSON Schema
{
  "$schema": "https://openinherit.org/v1/dialect.json",
  "$id": "https://openinherit.org/v1/common/money.json",
  "$comment": "Consumers must look up the ISO 4217 exponent for the currency code. JPY/KRW: exponent 0 (amount IS face value). KWD/BHD/OMR: exponent 3. Most currencies: exponent 2.",
  "title": "Money",
  "description": "Monetary value in integer minor currency units with ISO 4217 code. Never floating point.",
  "type": "object",
  "properties": {
    "amount": {
      "type": "integer",
      "description": "Value in smallest currency unit (e.g. 32500 = £325.00)"
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "ISO 4217 three-letter code"
    }
  },
  "required": ["amount", "currency"],
  "additionalProperties": false
}