From 2726500debb18d611df6371c9f6d721ed45a965c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petter=20Walb=C3=B8=20Johnsg=C3=A5rd?= Date: Fri, 5 Nov 2021 17:04:32 +0100 Subject: [PATCH] Revert "Block Library: Fix incorrect attributes definitions #36140" The `templateLock` attribute is mixed between boolean and string. Setting the type as string introduces an regression that will remove `false` on save. The original PR (#36140) tried to fix a validation issue reported in #35902 The schema error is incorrect. The attribute definition is required to have either a `type` or an `enum`. --- packages/block-library/src/column/block.json | 1 - packages/block-library/src/cover/block.json | 1 - packages/block-library/src/group/block.json | 1 - 3 files changed, 3 deletions(-) diff --git a/packages/block-library/src/column/block.json b/packages/block-library/src/column/block.json index 826b916811cad..1a1513ad2e66c 100644 --- a/packages/block-library/src/column/block.json +++ b/packages/block-library/src/column/block.json @@ -17,7 +17,6 @@ "type": "array" }, "templateLock": { - "type": "string", "enum": [ "all", "insert", false ] } }, diff --git a/packages/block-library/src/cover/block.json b/packages/block-library/src/cover/block.json index cac312ec13386..ecb8227079c15 100644 --- a/packages/block-library/src/cover/block.json +++ b/packages/block-library/src/cover/block.json @@ -67,7 +67,6 @@ "type": "array" }, "templateLock": { - "type": "string", "enum": [ "all", "insert", false ] } }, diff --git a/packages/block-library/src/group/block.json b/packages/block-library/src/group/block.json index c10790d28c427..5e182cd0e9cba 100644 --- a/packages/block-library/src/group/block.json +++ b/packages/block-library/src/group/block.json @@ -12,7 +12,6 @@ "default": "div" }, "templateLock": { - "type": "string", "enum": [ "all", "insert", false ] } },