Skip to content

Commit

Permalink
Have the validator script save schemas merged, not unmerged, to preve…
Browse files Browse the repository at this point in the history
…nt an issue where it was saved with a with_standard schema that has since changed
  • Loading branch information
IanCa committed Jul 26, 2024
1 parent 26bc2f3 commit a8bb05d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hed/scripts/script_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ def validate_schema(file_path):
validation_issues.append(error_message)
return validation_issues

mediawiki_string = base_schema.get_as_mediawiki_string()
mediawiki_string = base_schema.get_as_mediawiki_string(save_merged=True)
reloaded_schema = from_string(mediawiki_string, schema_format=".mediawiki")

validation_issues += _get_schema_comparison(base_schema, reloaded_schema, file_path, "mediawiki")

xml_string = base_schema.get_as_xml_string()
xml_string = base_schema.get_as_xml_string(save_merged=True)
reloaded_schema = from_string(xml_string, schema_format=".xml")

validation_issues += _get_schema_comparison(base_schema, reloaded_schema, file_path, "xml")

tsv_dataframes = base_schema.get_as_dataframes()
tsv_dataframes = base_schema.get_as_dataframes(save_merged=True)
reloaded_schema = from_dataframes(tsv_dataframes)

validation_issues += _get_schema_comparison(base_schema, reloaded_schema, file_path, "tsv")
Expand Down

0 comments on commit a8bb05d

Please sign in to comment.