phenopackets / phenopacket-tools

An app and library for building, conversion, and validation of GA4GH Phenopackets.
http://phenopackets.org/phenopacket-tools/stable/
GNU General Public License v3.0
12 stars 5 forks source link

Validate `Variation` object embedded in the the Phenopacket Schema #133

Closed ielis closed 1 year ago

ielis commented 1 year ago

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.