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

57 lines
1.2 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
"featureFlags": [
"experimental-asset-scaling"
],
"testCases": [
{
"it": "updates the swap account balances",
"balances": [
{
"account": "src",
"asset": "EUR",
"amount": 1
}
],
"expect.postings": [
{
"source": "world",
"destination": "swap",
"asset": "EUR/2",
"amount": 500
},
{
"source": "src",
"destination": "swap",
"asset": "EUR",
"amount": 1
},
{
"source": "swap",
"destination": "src",
"asset": "EUR/2",
"amount": 100
},
{
"source": "src",
"destination": "dest",
"asset": "EUR/2",
"amount": 1
},
{
"source": "swap",
"destination": "dest:0",
"asset": "EUR",
"amount": 1
},
{
"source": "swap",
"destination": "dest:2",
"asset": "EUR/2",
"amount": 400
}
]
}
]
}