tskit
tskit copied to clipboard
Struct metadata schema without `properties` results in `KeyError`
As struct doesn't support properties that are not specified in the schema it errors out with a KeyError if properties is not present in the schema dict, for example tskit.MetadataSchema({'codec':'struct'}).
Ideally, we should be raising MetadataSchemaValidationError with a helpful error message.