diff --git a/schemas/validate.py b/schemas/validate.py index a5e315e..2690327 100644 --- a/schemas/validate.py +++ b/schemas/validate.py @@ -2,9 +2,7 @@ import argparse import sys import json import jsonschema -import jsonschema.protocols import jsonschema.validators -from jsonschema import Draft202012Validator from jsonschema.exceptions import SchemaError, ValidationError from referencing import Registry, Resource from referencing.jsonschema import DRAFT202012 @@ -45,6 +43,7 @@ if __name__ == "__main__": print("Schema check failed.") print(f"{e.message}") exit(1) + # Validate the document try: validator.validate(document) print("Valid!")