Commit e20e7f2f authored by Pierre Dittgen's avatar Pierre Dittgen

Fix validation bug on dimension values labels as list

parent a3d8d79d
Pipeline #35645 failed with stage
in 58 seconds
......@@ -296,7 +296,9 @@ def validate_dataset(dataset_dir, ignore_errors=[]):
if error_code not in ignore_errors and dimensions_values_labels is not None:
for dim in dimensions_values_labels:
label_set = set()
for label in dimensions_values_labels[dim].values():
dim_data = dimensions_values_labels[dim]
dim_dict = dim_data if isinstance(dim_data, dict) else dict(dim_data)
for label in dim_dict.values():
if label in label_set:
errors.append({
"cause": build_jsonschema_error(dataset_schema_errors),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment