diff --git a/src/schema-validation.jsonc b/src/schema-validation.jsonc index 1a645a8c425..edf816bcfd5 100644 --- a/src/schema-validation.jsonc +++ b/src/schema-validation.jsonc @@ -164,7 +164,6 @@ "kestra-0.18.2.json", "kestra-0.18.3.json", "kestra-0.19.0.json", - "kustomization.json", "label-commenter-config.json", "launchsettings.json", "lerna.json", diff --git a/src/schemas/json/kustomization.json b/src/schemas/json/kustomization.json index dc6656b6722..344005c8efe 100644 --- a/src/schemas/json/kustomization.json +++ b/src/schemas/json/kustomization.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/kustomization.json", "$ref": "#/definitions/Kustomization", "definitions": { "ConfigMapArgs": { @@ -141,6 +142,7 @@ "type": "object", "patternProperties": { ".*": { + "type": "object", "additionalProperties": true } } @@ -444,7 +446,7 @@ { "properties": { "order": { - "enum": ["legacy"] + "const": "legacy" }, "legacySortOptions": { "properties": { @@ -465,7 +467,7 @@ { "properties": { "order": { - "enum": ["fifo"] + "const": "fifo" } }, "additionalProperties": false, @@ -501,6 +503,7 @@ "Labels": { "properties": { "pairs": { + "type": "object", "description": "Pairs contains the key-value pairs for labels to add", "patternProperties": { ".*": { @@ -682,6 +685,7 @@ "description": "Refers to a Kubernetes object that the patch will be applied to. It must refer to a Kubernetes resource under the purview of this kustomization" } }, + "type": "object", "additionalProperties": false }, "PatchesInlinePatch": { @@ -698,6 +702,7 @@ "description": "Refers to a Kubernetes object that the patch will be applied to. It must refer to a Kubernetes resource under the purview of this kustomization" } }, + "type": "object", "additionalProperties": false }, "ReplacementsInline": { @@ -977,6 +982,5 @@ "additionalProperties": false, "type": "object" } - }, - "id": "https://json.schemastore.org/kustomization.json" + } }