From 7ab3d52901582a71f5f7ca93c2e5f181eb371476 Mon Sep 17 00:00:00 2001 From: Lorenzo Figini Date: Fri, 17 May 2024 11:01:14 +0200 Subject: [PATCH] Remove unused imports --- schemas/validate.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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!")