Skip to content

Commit

Permalink
Describe versioning principles
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Jan 9, 2025
1 parent cac1341 commit 13659b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ plugins:
nav:
# - Home: home.md
- Index: index.md
- Principles: principles.md
- About: about.md
site_url: https://nfdi4cat.github.io/pid4cat-model
repo_url: https://github.com/nfdi4cat/pid4cat-model
Expand Down
12 changes: 12 additions & 0 deletions src/docs/files/principles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Versioning of PID4Cat-model

The versioning of the PID4Cat-model is following the **SchemaVer** scheme proposed in a [snowplow blog post](https://snowplow.io/blog/introducing-schemaver-for-semantic-versioning-of-schemas). This also matches with the [HCA schema versioning](https://github.com/HumanCellAtlas/metadata-schema/blob/master/docs/evolution.md#schema-versioning) and is also adapted by [openlinaeage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/Versioning.md).

**SchemaVer**: Given a version number MODEL.REVISION.ADDITION, increment the

- MODEL when you make a breaking schema change which will prevent interaction with any historical data
- REVISION when you make a schema change which may prevent interaction with some historical data
- ADDITION when you make a schema change that is compatible with all historical data

The versions are tagged in git (for example "v1.2.3").
Based on the tags we also create GitHub releases to provide easy access to all versions and to document the changes between versions.

0 comments on commit 13659b3

Please sign in to comment.