Files
Alessandro ScandoneandGitHub 5dfc34cd3c feat: feature flag syntax (#120)
* feat: feature flag syntax

* feat: change syntax

* feat: reject invalid features

* feat: add static check of unknown features

* feat: more defensive args handling

* fix: fix typo
2026-03-04 13:32:35 +00:00

34 lines
723 B
JSON

{
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/specs.schema.json",
"testCases": [
{
"it": "is capped to USD100 when balance is higher",
"balances": {
"src": { "USD": 999 }
},
"expect.postings": [
{
"source": "src",
"destination": "dest",
"amount": 100,
"asset": "USD"
}
]
},
{
"it": "allows sending less than the cap when balance is not enough",
"balances": {
"src": { "USD": 42 }
},
"expect.postings": [
{
"source": "src",
"destination": "dest",
"amount": 42,
"asset": "USD"
}
]
}
]
}