Commit 3491347
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 3491347
1 file changed
Lines changed: 8 additions & 1 deletion
| 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 | | |
| |||
0 commit comments