diff --git a/snapshotEngine/getAllSnapshotMetadata.py b/snapshotEngine/getAllSnapshotMetadata.py index 08689d0cf..43f63d79b 100644 --- a/snapshotEngine/getAllSnapshotMetadata.py +++ b/snapshotEngine/getAllSnapshotMetadata.py @@ -48,8 +48,8 @@ schema = f.read() # json.validate() returns None if successful -if not validate(metadata_document, json.loads(schema)): - print("Metadata sucessfully validated against schema!") +if not validate(json.loads(metadata_document), json.loads(schema)): + print("Metadata successfully validated against schema!") else: raise Exception("Metadata NOT validated against schema!")