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

JSON Schema draft version not specified #256

Open
imartinezortiz opened this issue Apr 15, 2022 · 5 comments
Open

JSON Schema draft version not specified #256

imartinezortiz opened this issue Apr 15, 2022 · 5 comments

Comments

@imartinezortiz
Copy link
Contributor

imartinezortiz commented Apr 15, 2022

Filing an issue about the xAPI Profiles specification? Please include the following

  • Which part/parts of the specification are at issue?

xAPI profiles structure, xAPI profiles about

  • What is your understanding of what the spec means in these parts?

Both documents mentioned the JSON Schema specification but do not specify precisely the draft version that should be used whenever a JSON schema string is provided.

  • Related to your implementation, what's the use case you're trying to achieve? What are the user stories you're trying to support?

Seems that there are some (breaking) changes between versions, so any xapi profile processing library (or some of its dependencies) needs to guess the draft version or give up validating the associated value to the schema.

  • How you would like the specification to be improved?

I would like a clarification regarding the JSON schema version, versions, or minimum version that the schema definitions (either inline or reference) can be used. Note that there is a variable support of json schema drafts in different implementations

@andyjohnson
Copy link
Collaborator

Per the 5/3/2022 will need to update to the latest JSON schema version. The latest version needs to be pinned down and said that is the version that is used. Make sure that there are no issues between the version that was used when the spec was written and the new version.

@andyjohnson
Copy link
Collaborator

Whenever you use JSON Schema, use the latest version (could potentially link to the latest, @FeLungs will take this on.

@FeLungs
Copy link
Contributor

FeLungs commented May 17, 2022

Version at time of writing the xAPI Profile spec was Draft 7. Since then, there have been two major releases:

The documents are written as Internet-Drafts and there are no plans for joining a standardization body

Internet-Drafts expire after six months, so our goal is to publish often enough to always have a set of unexpired drafts available. There may be brief gaps as we wrap up each draft and finalize the text

Given this, we should keep an eye on JSON Schema during our work bc the most recent release was published on 2021-02-01 and there will likely be another release soon.

imartinezortiz added a commit to imartinezortiz/xapi-profiles that referenced this issue Aug 2, 2022
imartinezortiz added a commit to imartinezortiz/xapi-profiles that referenced this issue Aug 2, 2022
@imartinezortiz
Copy link
Contributor Author

Opened #261 to clarify JSONSchema version that is currently used in the spec. But I suggest to keep this opened for future reference and update the Draft version in the new version of the specification

@imartinezortiz
Copy link
Contributor Author

imartinezortiz commented Feb 27, 2023

Just doing some maintenance on pending issues. As expected, new versions of the core and validation specifications have been published with new changes and clarifications

Moreover there some discussion in the JSON Schema Community to create a Charter in the OpenJS Foundation to clarify and steer the project effort.

Finally, there implementations in most programming / languages that support the 2020-12 specs (also known as Draft 9).

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

No branches or pull requests

3 participants