{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thefork/main/json-schema/thefork-pos-money-schema.json",
  "title": "Money",
  "x-api-evangelist-source": "openapi/thefork-pos-openapi.yml",
  "type": "object",
  "description": "A monetary amount with currency.",
  "properties": {
    "amount": {
      "type": "integer",
      "description": "Amount in the smallest currency unit (cents).",
      "example": 12500
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code.",
      "example": "EUR"
    }
  }
}