Remove unused imports
This commit is contained in:
parent
3ed93dbc9b
commit
7ab3d52901
@ -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!")
|
||||
|
Loading…
Reference in New Issue
Block a user