From 8a3c6418358920dcea8b97c7ee920afd6ddfba4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Thu, 29 Aug 2024 11:52:55 +0200 Subject: [PATCH] Add check --- ontology-build.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/ontology-build.rb b/ontology-build.rb index 5a44378..055fbe4 100644 --- a/ontology-build.rb +++ b/ontology-build.rb @@ -119,6 +119,7 @@ }.group_by{ |r| r["#{theme}_class"] }.collect{ |classs, sc| sc0 = sc[0] sc = sc.collect{ |rr| + rr['attributes'].any?{ |a| a == '' } and raise "Error: invalid attribute: #{rr['attributes'].inspect}" value = rr['name_over_value'] || rr['value'] [value, { label: { en: value, fr: rr['name:fr'] },