Files
Alessandro ScandoneandGitHub e58c2c09e8 fix: properly version json schemas (#171)
* fix: update schemas

* fix: update the schema of new specs file generator

* fix: update specs $schema field to the new one
2026-07-10 10:49:32 +02:00

26 lines
695 B
JSON

{
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
"featureFlags": [
"experimental-scoped-function",
"experimental-mid-script-function-call"
],
"balances": [
{ "account": "a", "asset": "COIN", "amount": 100, "scope": "s" },
{ "account": "a", "asset": "COIN", "amount": 999 }
],
"testCases": [
{
"it": "save protects 30 on the scoped balance; send-all then takes the remaining 70 (unscoped 999 untouched)",
"expect.postings": [
{
"source": "a",
"sourceScope": "s",
"destination": "dest",
"asset": "COIN",
"amount": 70
}
]
}
]
}