From 2665ea911a53bb2ba8abcd2d0357849a95e35291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petter=20Walb=C3=B8=20Johnsg=C3=A5rd?= Date: Tue, 23 Nov 2021 14:08:11 +0100 Subject: [PATCH] Schemas: Allow custom blocks in theme.json styles (#36411) * Schemas: Allow custom blocks in theme.json styles * Remove allOf and use patternProperties --- schemas/json/theme.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/schemas/json/theme.json b/schemas/json/theme.json index e598616df2ff9..42053a01e752a 100644 --- a/schemas/json/theme.json +++ b/schemas/json/theme.json @@ -578,6 +578,11 @@ "$ref": "#/definitions/settingsPropertiesComplete" } }, + "patternProperties": { + "^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$": { + "$ref": "#/definitions/settingsPropertiesComplete" + } + }, "additionalProperties": false }, "settingsCustomAdditionalProperties": { @@ -1035,6 +1040,11 @@ "$ref": "#/definitions/stylesPropertiesAndElementsComplete" } }, + "patternProperties": { + "^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$": { + "$ref": "#/definitions/stylesPropertiesAndElementsComplete" + } + }, "additionalProperties": false }, "stylesPropertiesAndElementsComplete": {