One spelling per shape: reject a one-item choice, a repeated item and an inert object; reshape the data
This commit is contained in:
+11
-13
@@ -1,13 +1,11 @@
|
||||
[
|
||||
{
|
||||
"format": "{amt}{ore} kr",
|
||||
"amt": [
|
||||
{ "format": "{int(1,9)}", "weight": 2 },
|
||||
{ "format": "{int(10,99)}", "weight": 4 },
|
||||
{ "format": "{int(100,999)}", "weight": 3 },
|
||||
{ "format": "{int(1,9)} {digits(3)}", "weight": 1 },
|
||||
{ "format": "{int(10,99)} {digits(3)}", "weight": 0.3 }
|
||||
],
|
||||
"ore": ["", { "format": ",{c}", "c": [{ "format": "{digits(2)}" }], "weight": 0.4 }]
|
||||
}
|
||||
]
|
||||
{
|
||||
"format": "{amt}{ore} kr",
|
||||
"amt": [
|
||||
{ "format": "{int(1,9)}", "weight": 2 },
|
||||
{ "format": "{int(10,99)}", "weight": 4 },
|
||||
{ "format": "{int(100,999)}", "weight": 3 },
|
||||
"{int(1,9)} {digits(3)}",
|
||||
{ "format": "{int(10,99)} {digits(3)}", "weight": 0.3 }
|
||||
],
|
||||
"ore": ["", { "format": ",{c}", "c": "{digits(2)}", "weight": 0.4 }]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user