{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "title": "Unit Pretty Value Format Context",
  "description": "The context for rendering custom unit prettyValue",
  "type": "object",
  "properties": {
    "unit": {
      "type": "string",
      "title": "Unit",
      "description": "The unit of the reward",
      "minLength": 1
    },
    "value": {
      "type": "integer",
      "title": "Value",
      "description": "The value of the reward. If the reward is currency based, then this is the value in the currency's fractional unit."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "The name of the reward"
    },
    "currencySymbol": {
      "type": "string",
      "title": "Currency Symbol",
      "description": "The currency symbol in the rendering locale",
      "minLength": 1
    },
    "currencyLocalizedSymbol": {
      "type": "string",
      "title": "Currency Localized Symbol",
      "description": "The currency symbol in the currency's native locale",
      "minLength": 1
    },
    "currencyCode": {
      "type": "string",
      "title": "Currency Code",
      "description": "The ISO 4217 currency code",
      "pattern": "^[A-Z]{3}$"
    },
    "currencyNumericCode": {
      "type": "integer",
      "title": "Currency Numeric Code",
      "description": "The ISO 4217 numeric currency code",
      "minimum": 0,
      "maximum": 999
    },
    "currencyDisplayName": {
      "type": "string",
      "title": "Currency Display Name",
      "description": "The display name of the currency in the rendering locale",
      "minLength": 1
    },
    "currencyLocalizedDisplayName": {
      "type": "string",
      "title": "Currency Localized Display Name",
      "description": "The display name of the currency in the currency's native locale",
      "minLength": 1
    },
    "currencyFractionalUnit": {
      "type": "string",
      "title": "Currency Fractional Unit",
      "description": "The fractional unit of the currency, e.g. \"Cent\".",
      "minLength": 1
    },
    "currencyNumberToBasic": {
      "type": "integer",
      "title": "Currency Number To Basic",
      "description": "How many the currency subdivision go into the currency, e.g. 100 pence to the pound.",
      "minimum": 1
    },
    "valueInCurrencyBaseUnit": {
      "type": "number",
      "title": "Value in Currency Base Unit",
      "description": "The value of the reward in the currency's base unit"
    }
  },
  "additionalProperties": false,
  "required": [
    "unit",
    "value"
  ]
}