feat: update schema to accept semver strings

This commit is contained in:
Pete Davison
2024-01-11 22:46:17 +00:00
committed by Andrey Nering
parent 26e79121f9
commit 90a56df621

View File

@@ -531,14 +531,14 @@
"properties": {
"version": {
"description": "Specify the Taskfile format that this file conforms to.",
"anyOf": [
"oneOf": [
{
"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-]+)*))?$"
},
{
"type": "number",
"enum": [3]
},
{
"type": "string",
"enum": ["3"]
}
]
},