Validation regex pattern for branch_label
display default values in Auspice config JSON is too strict
#1661
Labels
branch_label
display default values in Auspice config JSON is too strict
#1661
Current Behavior
For seasonal flu builds, we need to annotate alternate clade labels including one called
proposed_subclade
. We want to show these proposed subclades by default in some analyses, so we need to set thebranch_label
key in the Auspice config JSON'sdisplay_defaults
to theproposed_subclade
field.When I do this,
augur export v2
fails during validation of the Auspice config JSON with the following error:Expected behavior
Validation should allow hyphens, underscores, and spaces in the branch label. For example,
proposed_subclade
,proposed-subclade
, andProposed subclade
are all valid branch labels for the final Auspice JSON, but they are only disallowed when selected as display defaults.Possible solution
Update the regex in the Auspice config JSON schema to be:
^(none|[-_ a-zA-Z0-9]+)$
.The text was updated successfully, but these errors were encountered: