Skip to content

Commit

Permalink
Minor improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Mar 6, 2024
1 parent 952300f commit 31d242e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions schemas/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ def check_urls_exist(download_base_url, files):

if __name__ == '__main__':
for file_name in os.listdir('versions'):
assert file_name.endswith('.json'), 'Unexpected file'

assert file_name.endswith('.json'), f"Unexpected non-JSON file '{file_name}'"
schema_name = LATEST_EA_SCHEMA if file_name == LATEST_EA_JSON else GENERIC_EA_SCHEMA
validate(file_name, schema_name)

print('JSON validation successful')

0 comments on commit 31d242e

Please sign in to comment.