-
-
Notifications
You must be signed in to change notification settings - Fork 306
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 version identifier #1532
Comments
Hey there. Thanks for the suggestion. I'm pretty sure we've received this request before, but it's really been in more of a "how do I manage my schema version?" format. I recommend doing what we actually do with the meta-schemas: embed the version into the You can still use semver in the I'll mark this as a proposal and leave it open to get others' opinions as well. |
@gregsdennis has a good suggested alternative. Your idea could be pursued as part of a generic mechanism for metadata (perhaps a variation on "$comment" that accepts a JSON-LD blob), but anything more specific than that doesn't make sense. |
I like the idea of using the $id method for specifying versions, but I think we can also implement @joostholslag's idea. I've thought about it and have a suggestion that takes a slightly different direction. Instead of adding a 'version' keyword, we could introduce a boolean like This approach offers a more user-friendly option for version control without breaking current practices. Example
|
I'd love the ability to specify the version of a schema.
It should identify the version of the current schema (not of the specification/meta-schema.
It should be recommended to use semantic versioning of the schema.
Similar to OpenAPI info_object.version: https://spec.openapis.org/oas/latest.html#info-object
It would help to express openEHR archetype models for clinical data in something standard like json-schema.
It could be solve by introducing a new keyword like "version" where the value is a string with recommended formatting in "x.x.x".
p.s. I'm sorry if this has been asked and answered. a search for 'version' produced many results, the first two pages were not relevant and 'semantic version' didn't produce any relevant results.
The text was updated successfully, but these errors were encountered: