Moved to jsonschema for validation of data.