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: Extend export v2 schema to support an array of trees #851

Merged
merged 1 commit into from
Feb 14, 2022
Merged
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
15 changes: 14 additions & 1 deletion augur/data/schema-export-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,19 @@
}
}
},
"tree": {
"description": "One or more phylogenies using a nested JSON structure",
"oneOf": [
{"$ref": "#/$defs/tree"},
{
"type": "array",
"minItems": 1,
"items": {"$ref": "#/$defs/tree"}
}
]
}
},
"$defs": {
"tree": {
"type" : "object",
"$comment": "The phylogeny in a nested JSON structure",
Expand Down Expand Up @@ -500,7 +513,7 @@
"$comment": "Polytomies (more than 2 items) allowed, as are nodes with a single child.",
"type": "array",
"minItems": 1,
"items": {"$ref": "#/properties/tree"}
"items": {"$ref": "#/$defs/tree"}
}
}
}
Expand Down