From 90a56df621dca3748cc6e7cc5242b8abf630df13 Mon Sep 17 00:00:00 2001 From: Pete Davison Date: Thu, 11 Jan 2024 22:46:17 +0000 Subject: [PATCH] feat: update schema to accept semver strings --- docs/static/schema.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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"] } ] },