From 391bff41adced4eac348c29d26d53dad882ea8b8 Mon Sep 17 00:00:00 2001 From: lizelive Date: Tue, 11 Apr 2023 10:47:25 -0700 Subject: [PATCH] remove mixed enum from devContainer.base.schema.json Mixed enums are not widely supported by generators. --- schemas/devContainer.base.schema.json | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/schemas/devContainer.base.schema.json b/schemas/devContainer.base.schema.json index c918382..6d1cc5c 100644 --- a/schemas/devContainer.base.schema.json +++ b/schemas/devContainer.base.schema.json @@ -413,16 +413,14 @@ "gpu": { "oneOf": [ { - "type": [ - "boolean", - "string" - ], - "enum": [ - true, - false, - "optional" - ], - "description": "Indicates whether a GPU is required. The string \"optional\" indicates that a GPU is optional. An object value can be used to configure more detailed requirements." + "type": "boolean", + "const" : true, + "description": "Indicates a GPU is required." + }, + { + "type": "string", + "const": "optional", + "description": "\"optional\" indicates that a GPU is optional." }, { "type": "object", @@ -723,4 +721,4 @@ } ], "unevaluatedProperties": false -} \ No newline at end of file +}