diff --git a/script/tabular_to_schema.py b/script/tabular_to_schema.py index 8d421bb6..2866e64c 100644 --- a/script/tabular_to_schema.py +++ b/script/tabular_to_schema.py @@ -327,6 +327,13 @@ enum['permissible_values'][text] = choice menu_path.append(text) + if len(SCHEMA['slots']) == 0: + print("WARNING: there are no slots in this specification!", title) + + if len(enumerations) == 0: + print("WARNING: there are no enumerations in this specification!", title) + + with open(w_filename, 'w') as output_handle: yaml.dump(SCHEMA, output_handle, sort_keys=False)