tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Struct metadata schema without `properties` results in `KeyError`

Open benjeffery opened this issue 3 years ago • 0 comments

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.

benjeffery avatar Oct 10 '22 14:10 benjeffery