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

Validate Variation object embedded in the the Phenopacket Schema #133

Merged
merged 5 commits into from
Nov 12, 2022

Conversation

ielis
Copy link
Collaborator

@ielis ielis commented Nov 8, 2022

Create a JSON schema for validation of Variation object embedded in the Phenopacket Schema.

The validation ensures presence of a field from a oneof group and absence of any additional attributes/properties within the Variation object sub-hierarchy.

The tests are at lines 227-254 of phenopacket-tools-validator-jsonschema/src/test/java/org/phenopackets/phenopackettools/validator/jsonschema/JsonSchemaValidationWorkflowRunnerTest.java.

ielis added 2 commits November 8, 2022 11:58
Signed-off-by: Daniel Danis <daniel.gordon.danis@protonmail.com>
Signed-off-by: Daniel Danis <daniel.gordon.danis@protonmail.com>
@ielis ielis changed the title Relax validation of VRS-like Variation struct. Validate Variation object embedded in the the Phenopacket Schema Nov 9, 2022
ielis added 3 commits November 9, 2022 13:37
Signed-off-by: Daniel Danis <daniel.gordon.danis@protonmail.com>
Signed-off-by: Daniel Danis <daniel.gordon.danis@protonmail.com>
…ation error. Absence of a `oneof` field in `Variation` leads to an error.

Signed-off-by: Daniel Danis <daniel.gordon.danis@protonmail.com>
@ielis ielis marked this pull request as ready for review November 9, 2022 20:58
@ielis ielis merged commit 44d00a6 into phenopackets:develop Nov 12, 2022
@ielis ielis deleted the relax_vrs_validation branch November 12, 2022 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants