From e39bc3dd80befafb8a45bd1fd7a1b885acf53b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Brala?= <49259-bbrala@users.noreply.drupalcode.org> Date: Sat, 29 Mar 2025 10:30:18 +0000 Subject: [PATCH 1/3] chore: comment on the Ingore --- core/modules/field/config/schema/field.schema.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/modules/field/config/schema/field.schema.yml b/core/modules/field/config/schema/field.schema.yml index cdd1d4bab05c..615b13cbf64c 100644 --- a/core/modules/field/config/schema/field.schema.yml +++ b/core/modules/field/config/schema/field.schema.yml @@ -54,6 +54,10 @@ field.storage.*.*: sequence: type: sequence label: 'Indexes' + # Type ignore is used since index is a flexible value that can be set + # by provided field storage. It also depends on the backing storage. + # Currently it is impossible to determine the shape and value of the + # index. sequence: type: ignore label: 'Index' -- GitLab From b3893176adeb62942976f179bf39b724c6916e2c Mon Sep 17 00:00:00 2001 From: bjorn <bjorn@swis.nl> Date: Sat, 29 Mar 2025 11:35:48 +0100 Subject: [PATCH 2/3] feat: what if indexes are validated as an array. Does that work. --- core/modules/field/config/schema/field.schema.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/modules/field/config/schema/field.schema.yml b/core/modules/field/config/schema/field.schema.yml index 615b13cbf64c..2621bc3f0185 100644 --- a/core/modules/field/config/schema/field.schema.yml +++ b/core/modules/field/config/schema/field.schema.yml @@ -54,12 +54,8 @@ field.storage.*.*: sequence: type: sequence label: 'Indexes' - # Type ignore is used since index is a flexible value that can be set - # by provided field storage. It also depends on the backing storage. - # Currently it is impossible to determine the shape and value of the - # index. sequence: - type: ignore + type: array label: 'Index' persist_with_no_fields: type: boolean -- GitLab From 6a91b8d0897127e7fc7ced9d0a3988667322bbda Mon Sep 17 00:00:00 2001 From: bjorn <bjorn@swis.nl> Date: Sat, 29 Mar 2025 11:52:52 +0100 Subject: [PATCH 3/3] fix: lets try sequence sequence --- core/modules/field/config/schema/field.schema.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/field/config/schema/field.schema.yml b/core/modules/field/config/schema/field.schema.yml index 2621bc3f0185..e55bb6d48b04 100644 --- a/core/modules/field/config/schema/field.schema.yml +++ b/core/modules/field/config/schema/field.schema.yml @@ -55,7 +55,7 @@ field.storage.*.*: type: sequence label: 'Indexes' sequence: - type: array + type: sequence label: 'Index' persist_with_no_fields: type: boolean -- GitLab