diff --git a/docs/static/schema.json b/docs/static/schema.json index 3026c24a..cb73c478 100644 --- a/docs/static/schema.json +++ b/docs/static/schema.json @@ -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"] } ] },