Allow manifest versions to be defined as SemVer strings (#274)

This commit is contained in:
QuazChick
2024-04-03 19:10:44 +01:00
committed by GitHub
parent 2449b73eab
commit a571926b70
3 changed files with 26 additions and 32 deletions

View File

@@ -28,9 +28,9 @@
"title": "UUID"
},
"version": {
"$ref": "../Version.json",
"title": "Version",
"description": "This is the version of your pack in the format [majorVersion, minorVersion, revision].",
"title": "Version"
"oneOf": [{ "$ref": "../Version.json" }, { "$ref": "../semver.json" }]
},
"min_engine_version": {
"type": "string",
@@ -72,9 +72,9 @@
"title": "UUID"
},
"version": {
"$ref": "../Version.json",
"title": "Version",
"description": "This is the version of the module in the same format as the pack's version in the header. This can be used to further identify changes in your pack",
"title": "Version"
"oneOf": [{ "$ref": "../Version.json" }, { "$ref": "../semver.json" }]
}
}
},
@@ -94,9 +94,9 @@
"title": "UUID"
},
"version": {
"$ref": "../Version.json",
"title": "Version",
"description": "This is the specific version of the pack that your pack depends on. Should match the version the other pack has in its manifest file",
"title": "Version"
"oneOf": [{ "$ref": "../Version.json" }, { "$ref": "../semver.json" }]
}
},
"description": "UNDOCUMENTED: dependencies.",