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

Add a $schema key, or similar, to Table Schema so it is machine identifiable #293

Closed
Hypercubed opened this issue Sep 11, 2016 · 4 comments
Assignees
Milestone

Comments

@Hypercubed
Copy link

This will help distinguish JSON Table Schemas from other types of JSON schema files.

See The "$schema" keyword

@rufuspollock
Copy link
Contributor

@Hypercubed good point. In the basic case how does one tell whether the schema value is a JTS or a simple JSON schema.

As discussed on chat one option is to look to the profile. However, that might not help where you have resources of different kinds in the same package.

We've thought for a while that the profile registry might include a registry both of DP profiles and Schema profiles (including profiles of JTS ...).

My concern is growing complexity here. In terms of an immediate way forward why don't you try out using the $schema tag and report back on how you do it and how it goes?

@pwalsh
Copy link
Member

pwalsh commented Sep 27, 2016

I see the use case. I'm not sure this is an issue for the specs themselves, but rather one for implementing code.

I think the utility of this in JSON Schema is for disambiguation between different versions of the spec.

If we realise we need this for JSON Table Schema after a v1, then surely we should look at the same implementation.

@rufuspollock
Copy link
Contributor

@pwalsh this is not disambiguating different versions of same spec so much as different uses of schema attribute: e.g. for JTS or for simple JSON Schema (when describing JSON data).

@pwalsh pwalsh added this to the v1.1 milestone Feb 5, 2017
@rufuspollock rufuspollock changed the title Consider adding a $schema key, or similar, to the JSON Table Schema spec. Add a $schema key, or similar, to Table Schema so it is machine identifiable Jun 12, 2020
@roll roll modified the milestones: v1.1, v2 Apr 14, 2023
@roll roll removed this from the v2 milestone Jan 3, 2024
@roll roll added this to the v2-final milestone Apr 12, 2024
@roll
Copy link
Member

roll commented Apr 12, 2024

DONE as a part of Data Package (v2) versioning

@roll roll closed this as completed Apr 12, 2024
@roll roll self-assigned this Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

4 participants