From 740cc6de7f53ba1ae7706b9b3545f361941da465 Mon Sep 17 00:00:00 2001 From: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> Date: Thu, 23 Jul 2026 02:10:52 -0400 Subject: [PATCH 1/2] Migrated to draft-07 Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> --- src/schemas/json/testenvironments.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/schemas/json/testenvironments.json b/src/schemas/json/testenvironments.json index 1ceb7c61958..d93692810be 100644 --- a/src/schemas/json/testenvironments.json +++ b/src/schemas/json/testenvironments.json @@ -1,5 +1,6 @@ { - "$schema": "http://json-schema.org/draft-04/schema#", + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://json.schemastore.org/testenvironments.json", "definitions": { "config": { "required": ["name", "type"], @@ -32,7 +33,7 @@ "docker": { "properties": { "type": { - "enum": ["docker"] + "const": "docker" } }, "oneOf": [ @@ -60,7 +61,7 @@ "required": ["wslDistribution"], "properties": { "type": { - "enum": ["wsl"] + "const": "wsl" }, "wslDistribution": { "type": "string", @@ -72,7 +73,7 @@ "required": ["remoteUri"], "properties": { "type": { - "enum": ["ssh"] + "const": "ssh" }, "remoteUri": { "type": "string", @@ -84,7 +85,7 @@ "required": ["remoteUri"], "properties": { "type": { - "enum": ["remote"] + "const": "remote" }, "remoteUri": { "type": "string", @@ -93,7 +94,6 @@ } } }, - "id": "https://json.schemastore.org/testenvironments.json", "properties": { "version": { "type": "string" From 93534dcc5760cd7fc6a802ae50e5548ddb2461f5 Mon Sep 17 00:00:00 2001 From: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> Date: Thu, 23 Jul 2026 02:12:10 -0400 Subject: [PATCH 2/2] Enabled strict validation Signed-off-by: Vessel9817 <151808241+Vessel9817@users.noreply.github.com> --- src/schema-validation.jsonc | 1 - src/schemas/json/testenvironments.json | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index de4bb92d48f..849944225e1 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -235,7 +235,6 @@ "taurus.json", "template.json", "templatesources.json", - "testenvironments.json", "tmlanguage.json", "travis.json", "tsconfig.json", diff --git a/src/schemas/json/testenvironments.json b/src/schemas/json/testenvironments.json index d93692810be..fc0f3457799 100644 --- a/src/schemas/json/testenvironments.json +++ b/src/schemas/json/testenvironments.json @@ -3,6 +3,7 @@ "$id": "https://json.schemastore.org/testenvironments.json", "definitions": { "config": { + "type": "object", "required": ["name", "type"], "oneOf": [ { @@ -31,6 +32,7 @@ } }, "docker": { + "type": "object", "properties": { "type": { "const": "docker" @@ -38,6 +40,7 @@ }, "oneOf": [ { + "type": "object", "required": ["dockerImage"], "properties": { "dockerImage": { @@ -47,6 +50,7 @@ } }, { + "type": "object", "required": ["dockerFile"], "properties": { "dockerFile": { @@ -58,6 +62,7 @@ ] }, "wsl": { + "type": "object", "required": ["wslDistribution"], "properties": { "type": { @@ -70,6 +75,7 @@ } }, "ssh": { + "type": "object", "required": ["remoteUri"], "properties": { "type": { @@ -82,6 +88,7 @@ } }, "remote": { + "type": "object", "required": ["remoteUri"], "properties": { "type": {