{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/MonetaryAmount/v1/schema.json",
  "title": "MonetaryAmount",
  "description": "Objects Grid MonetaryAmount Object. Modeled in compliance with https://schema.org/MonetaryAmount.",
  "type": "object",
  "properties": {
    "at_type": {
      "description": "The object type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "MonetaryAmount"
      ]
    },
    "currency": {
      "description": "The currency code",
      "$ref": "https://objectsgrid.com/.well-known/objects-catalog/CurrencyCodeEnumeration/v1/schema.json"
    },
    "maxValue": {
      "description": "The max monetary value",
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "minValue": {
      "description": "The min monetary value",
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    },
    "value": {
      "description": "The monetary value",
      "type": [
        "number",
        "null"
      ],
      "minimum": 0
    }
  },
  "required": [
    "value",
    "currency"
  ]
}