Allow manifest versions to be defined as SemVer strings (#274)
This commit is contained in:
11
source/general/semver.json
Normal file
11
source/general/semver.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema",
|
||||
"$id": "semver",
|
||||
"title": "Semantic Version",
|
||||
"description": "A semver.org compliant version number.",
|
||||
"type": "string",
|
||||
"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-]+)*))?$",
|
||||
"minLength": 5,
|
||||
"maxLength": 256,
|
||||
"examples": ["1.0.0", "1.1.0-beta"]
|
||||
}
|
||||
Reference in New Issue
Block a user