Skip to content

invalid_money

A policy diagnostic from deedglass policy lint and the policy routes.

Severity: error

A money string is not "<decimal> <currency>", or the amount is negative, zero (for max_spend) or larger than 9,007,199,254,740,991 in minor units. The same check applies to minor() inside a condition.

deedglass: policy/v1
name: refunds
defaults:
decision: deny
reason: No rule allows this action.
budgets:
- id: refunds-per-day
match: { tool: stripe.create_refund }
per: org
window: day
max_spend: "$500"
✕ policy.yaml:11:16 · invalid_money
$500 is not an amount of money.
hint: Write money as a string with a currency, like "50.00 usd".

Fix:

max_spend: "500.00 usd"