From 610d929bf06a6150866c41467c38b68fdd99242a Mon Sep 17 00:00:00 2001 From: rsrg-zwiama <104497642+rsrg-zwiama@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:22:39 +0100 Subject: [PATCH] fix datatype of compare value to string since the allowed_values[] are defined as strings, the compare values must be casted as well. --- src/dataset_features_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dataset_features_provider.py b/src/dataset_features_provider.py index 8bbd394..1ce4c5c 100644 --- a/src/dataset_features_provider.py +++ b/src/dataset_features_provider.py @@ -990,7 +990,7 @@ def validate_fields(self, feature): if constraints.get('allowMulti', False): value_set = ast.literal_eval(value) for val in value_set: - if val not in allowed_values: + if str(val) not in allowed_values: errors.append(self.translator.tr("validation.invalid_value_for") % (attr)) else: if str(value) not in allowed_values: