Remove unused imports
This commit is contained in:
parent
3ed93dbc9b
commit
7ab3d52901
@ -2,9 +2,7 @@ import argparse
|
|||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import jsonschema
|
import jsonschema
|
||||||
import jsonschema.protocols
|
|
||||||
import jsonschema.validators
|
import jsonschema.validators
|
||||||
from jsonschema import Draft202012Validator
|
|
||||||
from jsonschema.exceptions import SchemaError, ValidationError
|
from jsonschema.exceptions import SchemaError, ValidationError
|
||||||
from referencing import Registry, Resource
|
from referencing import Registry, Resource
|
||||||
from referencing.jsonschema import DRAFT202012
|
from referencing.jsonschema import DRAFT202012
|
||||||
@ -45,6 +43,7 @@ if __name__ == "__main__":
|
|||||||
print("Schema check failed.")
|
print("Schema check failed.")
|
||||||
print(f"{e.message}")
|
print(f"{e.message}")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
# Validate the document
|
||||||
try:
|
try:
|
||||||
validator.validate(document)
|
validator.validate(document)
|
||||||
print("Valid!")
|
print("Valid!")
|
||||||
|
Loading…
Reference in New Issue
Block a user