Commit 1c14ba0
committed
fix: allow numeric keys in Auspice coloring scale
The Auspice v2 JSON schema specifies that scale entries are two-element
arrays where the first item can be either string (categorical) or
numeric (continuous).¹ The previous type did not allow numeric keys and
would fail to deserialize Auspice JSONs with continuous colorings.
¹ https://nextstrain.org/schemas/auspice/config/v2#/properties/colorings/items/properties/scale1 parent ed665e1 commit 1c14ba0
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
611 | 618 | | |
612 | 619 | | |
613 | 620 | | |
| |||
619 | 626 | | |
620 | 627 | | |
621 | 628 | | |
622 | | - | |
| 629 | + | |
623 | 630 | | |
624 | 631 | | |
625 | 632 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
0 commit comments