@julesjacobsen -- please have a look at the new develop branch, and especially JsonSchemaValidatorTest. I think it is truly this easy. I had some difficulty finding good libraries for this, jackson itself does not seem to offer this functionality.
I used this as a reference
https://www.mscharhag.com/java/json-schema-validation
If we like this then the todo's are
general setup to take any phenopacket object (protobuf, yaml) and turn it into a JSONObject
improve API, for instance, maybe we want to have multiple additional schemas
Finish up the schema for the general (base case) phenopacket based on the cardinalities in the schema
@julesjacobsen -- please have a look at the new
develop
branch, and especiallyJsonSchemaValidatorTest
. I think it is truly this easy. I had some difficulty finding good libraries for this, jackson itself does not seem to offer this functionality. I used this as a reference https://www.mscharhag.com/java/json-schema-validationIf we like this then the todo's are