Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-conformant "attributes" metadata #303

Merged
merged 2 commits into from
Oct 19, 2024

Conversation

LDeakin
Copy link
Contributor

@LDeakin LDeakin commented Oct 19, 2024

I believe "attributes": null in array/group metadata is not conformant to the Zarr V3 specification. If empty, it must be omitted entirely or be "attributes": {}.

https://zarr-specs.readthedocs.io/en/latest/v3/core/v3.0.html#attributes

The following members are optional:

attributes
The value must be an object. The object may contain any key/value pairs, where the key must be a string and the value can be an arbitrary JSON literal. Intended to allow storage of arbitrary user metadata.

@paraseba paraseba self-requested a review October 19, 2024 14:24
Copy link
Contributor

@paraseba paraseba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @LDeakin !

@paraseba paraseba merged commit 6ef42f1 into earth-mover:main Oct 19, 2024
3 checks passed
dcherian added a commit that referenced this pull request Oct 21, 2024
* main: (167 commits)
  Bump actions/checkout from 2 to 4 in the actions group (#305)
  update zarr pin to v3.0.0b1 (#302)
  Fix non-conformant "attributes" metadata (#303)
  Implement branch reset functionality (#301)
  README minor tune up: syntax and other very minor typos etc (#300)
  remove awaits in icechunk notebook (#298)
  Add missing permission to release action (#295)
  Minor changes to virtual docs (#293)
  Add changelogs (#291)
  Install cargo release (#290)
  Update python ci (#289)
  GHA workflow to release Rust (#288)
  Release 0.1.0-alpha.3 to the Rust world (#287)
  `ByteRange` can do last n bytes now (#285)
  Introduce `Store::list_dir_items` (#286)
  [Docs] Improve virtual ref docs (#284)
  [Docs] correct output dimensions in xr example (#283)
  [Docs] add note for requirements of tutorial data download (#282)
  [Docs] correct module calls to match imports (#281)
  fix(docs): Docs postlaunch fixes (#278)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants