mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
reformat
This commit is contained in:
@@ -10,14 +10,14 @@ def return_json_from_response(response):
|
||||
|
||||
|
||||
def validate_v0(json_to_validate, schema_filename):
|
||||
schema_dir = os.path.join(os.path.dirname(__file__), 'schemas/v0')
|
||||
resolver = jsonschema.RefResolver('file://' + schema_dir + '/', None)
|
||||
schema_dir = os.path.join(os.path.dirname(__file__), "schemas/v0")
|
||||
resolver = jsonschema.RefResolver("file://" + schema_dir + "/", None)
|
||||
with open(os.path.join(schema_dir, schema_filename)) as schema:
|
||||
jsonschema.validate(
|
||||
json_to_validate,
|
||||
json.load(schema),
|
||||
format_checker=jsonschema.FormatChecker(),
|
||||
resolver=resolver
|
||||
resolver=resolver,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user