Skip to content

Commit

Permalink
extra error reporting of likely errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddooley committed Dec 19, 2022
1 parent 202f416 commit d885898
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions script/tabular_to_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d885898

Please sign in to comment.