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

59 lines
1.1 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/formancehq/numscript/main/v1.specs.schema.json",
"featureFlags": [
"experimental-oneof",
"experimental-asset-scaling"
],
"balances": [
{
"account": "acc2",
"asset": "EUR/2",
"amount": 100
}
],
"testCases": [
{
"it": "fallbacks to the second branch when there's not enough",
"balances": [
{
"account": "acc1",
"asset": "EUR/2",
"amount": 1
}
],
"expect.postings": [
{
"source": "acc1",
"destination": "dest",
"amount": 1,
"asset": "EUR/2"
},
{
"source": "acc2",
"destination": "dest",
"amount": 99,
"asset": "EUR/2"
}
]
},
{
"it": "succeeds in the first branch",
"balances": [
{
"account": "acc1",
"asset": "EUR/2",
"amount": 100
}
],
"expect.postings": [
{
"source": "acc1",
"destination": "dest",
"amount": 100,
"asset": "EUR/2"
}
]
}
]
}