Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas: Add missing display_default properties for Auspice config v2 #916

Merged
merged 2 commits into from
May 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions augur/data/schema-auspice-config-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,32 @@
"enum": ["rect", "radial", "unrooted", "clock"]
},
"branch_label": {
"description": "What branch label should be displayed by default, or 'none' to hide labels by default.",
"$comment": "Should be a key present in the per-node branch_attrs.labels object of the exported JSON; pattern is from the schema for that object",
"type": "string",
"enum": ["clade", "aa", "none"]
"pattern": "^(none|[a-zA-Z0-9]+)$"
},
"transmission_lines": {
"type": "boolean"
},
"language": {
"type": "string",
"minLength": 1,
"description": "A BCP 47 language tag specifying the default language in which to display Auspice's interface (if supported)"
},
"sidebar": {
"type": "string",
"enum": ["open", "closed"]
},
"panels": {
"type": "array",
"description": "The panels to display by default.",
"$comment": "optional, but if present must not be empty",
"minItems": 1,
"items": {
"type": "string",
"enum": ["tree", "map", "frequencies", "entropy"]
}
}
}
},
Expand All @@ -197,7 +218,7 @@
},
"panels": {
"type": "array",
"description": "Which panels should auspice display",
"description": "The panels available for display.",
"$comment": "optional",
"minItems": 1,
"items": {
Expand Down
25 changes: 23 additions & 2 deletions augur/data/schema-export-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,33 @@
"type": "boolean"
},
"branch_label": {
"description": "What branch label should be displayed by default.",
"type": "string"
"description": "What branch label should be displayed by default, or 'none' to hide labels by default.",
"$comment": "Should be a key present in the per-node branch_attrs.labels object of the exported JSON; pattern is from the schema for that object",
"type": "string",
"pattern": "^(none|[a-zA-Z0-9]+)$"
},
"transmission_lines": {
"description": "Should transmission lines (if available) be displaye by default",
"type": "boolean"
},
"language": {
"type": "string",
"minLength": 1,
"description": "A BCP 47 language tag specifying the default language in which to display Auspice's interface (if supported)"
},
"sidebar": {
"type": "string",
"enum": ["open", "closed"]
},
"panels": {
"type": "array",
"description": "The panels to display by default.",
"$comment": "optional, but if present must not be empty",
"minItems": 1,
"items": {
"type": "string",
"enum": ["tree", "map", "frequencies", "entropy"]
}
}
}
},
Expand Down