Skip to content

Commit

Permalink
feat: semver Überprüfung mit RegEx von semver.org
Browse files Browse the repository at this point in the history
  • Loading branch information
schnaitter committed Feb 28, 2025
1 parent 544a2e6 commit 631a92c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# yaml-language-server: $schema=quadriga-schema.json
schema-version: "1.1b"
oer-version: "1.0b"
schema-version: "1.1-beta"
oer-version: "0.43.0"
identifier: https://doi.org # TODO: DOI registrieren
git: https://github.com/quadriga-dk/Book_Template
url: https://quadriga-dk.github.io/Book_Template/
Expand Down
9 changes: 7 additions & 2 deletions quadriga-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
},
"oer-version": {
"description": "Version der OER",
"type": "string"
"$ref": "#/$defs/semver"
},
"prerequesites": {
"description": "Liste von Voraussetzungen",
Expand Down Expand Up @@ -270,7 +270,7 @@
"description": "Versionsnummer des QUADRIGA-Metadatenschemas",
"enum": [
"1.1",
"1.1b"
"1.1-beta"
]
},
"target-group": {
Expand Down Expand Up @@ -461,6 +461,11 @@
"additionalProperties": true
}
]
},
"semver": {
"type": "string",
"description": "Semantic Versioning 2.0.0 (https://semver.org)",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
}
}
}

0 comments on commit 631a92c

Please sign in to comment.