phenopackets / phenopacket-validator

Library and tools to help validate phenopackets
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Validator APIs #11

Closed ielis closed 3 years ago

ielis commented 3 years ago

Hi @pnrobinson

I would like to propose the outline of Phenopacket validation process.

The validator-core module outlines interfaces and classes of the general Phenopacket validation, the module has no dependencies. The validation is done by a PhenopacketValidator that validates Phenopacket as an InputStream, File, or a String.

The validator-jsonschema module implements the validation using JSONschema. This is the place where we should write and test the schema definitions for different types of Phenopackets.

Last, validator-cli was not really changed a lot, so it is still a simple CLI that validates one or more Phenopackets.