-
Notifications
You must be signed in to change notification settings - Fork 42
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
Changes to the spec and schemata for RFC-2 #242
Conversation
Automated Review URLs |
Unchanged in this PR but
Even the example below that text doesn't contain |
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: |
In looking to implement support for reading the proposed V0.5 data (in ome-ngff-validator), I am finding the usage of the versioned key So I find that I am in agreement with various comments on RFC-2 about the concerns of using a version string as a key. |
Instead of using a URL-with-a-version-inside as a key, I think it would be better to pick a name like "ome" or "ome-ngff" as the key for an object, and have a |
I updated this PR for the RFC-2 revision. The namespace key is now |
Working with these schemas and those from @d-v-b's dev1 branch e.g. https://github.com/ome/ngff/blob/7da3d7bbd7c49db29b44e54a6bf5fd7e1387f100/0.5-dev1/schemas/image.schema in the ome-ngff-validator, I noticed that in this PR, the schemas include the I don't know which approach is most useful to the community, given the various tools that might want to consume these schemas? Is it most useful to be able to validate against a whole |
Is there a json schema for the base |
I'm not aware of one, but we should a) make one b) include it with the zarr v3 spec. Were I to work on this today, I would start by fixing up the rather meager v3 support in pydantic-zarr, and then use that to generate the schema. But any way of generating such a schema is valid. |
…tributes' within a zarr.json
I changed the JSON schema files to use the I also added |
See speced/bikeshed#2946 for some of the concerns around bikeshed |
As someone of you may have noticed from the large number of commits pushed here, the spec build is currently broken due to an update in the build system ( @will-moore: please note the new behavior of |
Changes to the spec and schemata for RFC-2 SHA: 3fc518b Reason: push, by @joshmoore Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
"attributes": { | ||
"ome": { | ||
"version": "0.5", | ||
"schema_url": "https://ngff.openmicroscopy.org/latest/schemas/ome_zarr.schema", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this on purpose? The schema_url
key is not defined in the specification and I assume a latest URL means the underlying schema will evolve through time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not on purpose. This needs fixing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to open a PR to remove it unless it's already part of a batch of changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in #279
This is the companion PR for RFC-2 which adds the changes to the spec document, json schemata, examples and test files. The PR is meant to support the review process of RFC-2 by providing the specifics.
Again, a brief summary of the main changes:
.zattrs
tozarr.json
ome
key in theattributes
of thezarr.json
files