GroupMetadata
and ArrayV2Metadata
should ignore extra keys for zarr v2 metadata
#2296
Labels
bug
Potential issues with the zarr-python library
Zarr version
v3
Numcodecs version
na
Python Version
na
Operating System
na
Installation
na
Description
Some Zarr v2 implementations store additional fields at the top level of the metadata files, e.g. nczarr. zarr-python 3.x currently can't read these files because the deserialization methods pass all the keys to the
GroupMetadata
andArrayV2Metadata
constructors.Steps to reproduce
Additional output
We can filter out unexpected keys before calling the constructors. We should decide what action to take when we encounter an unknown key (warning with the python logging module, a Python warning, and maybe some sort of config options to control the behavior).
For Zarr v3, I think the expectation is that extra keys are allowed, but they must be objects with a
must_understand
field.The text was updated successfully, but these errors were encountered: