{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aftership/main/json-schema/aftership-amount-v1-schema.json",
  "title": "Amount",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aftership-coverages-api-openapi.yml#/components/schemas/Amount.v1",
  "type": "object",
  "x-tags": [
    "Primitive"
  ],
  "properties": {
    "amount": {
      "type": "string",
      "pattern": "^[0-9.]+$"
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "minLength": 3,
      "maxLength": 3,
      "description": "Only support USD for now"
    }
  },
  "required": [
    "amount",
    "currency"
  ]
}