{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keepbal-com/json-schema/keepbal-com-spend-cap-schema.json",
  "title": "SpendCap",
  "description": "Positive USD amount or decimal string. Sub-micro precision is truncated; the effective cap must be a positive safe integer in micro-USD, cover estimated cost, and fit the wallet reservation.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keepbal-com-openapi.yaml#/components/schemas/SpendCap",
  "oneOf": [
    {
      "type": "number",
      "minimum": 1e-06
    },
    {
      "type": "string",
      "pattern": "^[0-9]+(\\.[0-9]*)?([eE][+-]?[0-9]+)?$"
    }
  ]
}