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

Schema updates #1298

Closed
wants to merge 5 commits into from
Closed

Schema updates #1298

wants to merge 5 commits into from

Conversation

jameshadfield
Copy link
Member

Various (relatively minor) improvements to the schemas. See commit messages for details.

These properties were never actually used (neither exported from augur
export v2 nor consumed by auspice)

Closes #867 <#867>
A number of parts of the auspice-config have identical (or
almost-identical) shape to those in the resulting dataset JSON, although
the actual data may be modified as it passes through `augur export v2`.

Rather than referencing the entire auspice-config schema and pruning
down properties, which I don't actually think is possible in jsonschema,
I chose to use $refs at a more fine grained level which I find easier to
read.

The actual schema definitions should be unchanged by this commit,
although comments / descriptions have been improved.
Auspice can already set the tip label via URL state (`?tl=...`) and will
shortly be able to parse the display_default added here.

Closes #1115 <#1115>
These work fine in Auspice. While the 'colorings' property is optional,
`augur export v2` will always set a (possibly empty) array. I also chose
to allow the auspice config file to have an empty colorings definition,
which in practice behaves the same as leaving it out.

Addresses comment in #273 <#273 (comment)>
Removes previously valid string patterns which were never used within
augur and would result in unexpected behaviour in auspice.
Also updates the patternProperties of CDSs to match that used in the
genome_annotations (schema-annotations.json)
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Patch has no changes to coverable lines.

Files Changed Coverage
augur/validate.py ø

📢 Thoughts on this report? Let us know!.

@jameshadfield
Copy link
Member Author

Closing as these commits are in #1299

@jameshadfield jameshadfield deleted the schema-updates branch September 20, 2023 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant