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 Example JSON document for Array metadata. #302

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

zoj613
Copy link
Contributor

@zoj613 zoj613 commented Jul 6, 2024

JSON array metadata document in the Array metadata section is ill-formed. the codecs field contains just the gzip codec configuration, even though the spec requires the codec chain to always have one array->bytes codec. That is in the example the gzip codec should be replaced with something more sensible like
{"name": "bytes", "configuration": "big"} to be considered correct. This commit fixes that.

JSON array metadata document in the **Array metadata** section is
ill-formed. the `codecs` field contains just the gzip codec configuration,
even though the spec requires the codec chain to always have one
`array->bytes` codec. That is in the example the gzip codec should be
replaced with something more sensible like
`{"name": "bytes", "configuration": "big"}` to be considered correct.
This commit fixes that.
@d-v-b
Copy link
Contributor

d-v-b commented Jul 8, 2024

thanks for the fix! I will use this opportunity to suggest that the kind of mistake you fixed here would be less likely if we used a more structured JSON representation for the codecs, c.f. #298

@joshmoore joshmoore merged commit f6cb2ba into zarr-developers:main Jul 25, 2024
1 check passed
@zoj613 zoj613 deleted the example branch July 25, 2024 16:31
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.

3 participants