Skip to content

Commit

Permalink
Minor optimization and a copyright fix
Browse files Browse the repository at this point in the history
  • Loading branch information
e-backmark-ericsson committed Jan 9, 2024
1 parent 97e3c35 commit 0be89f8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test_jsonschema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Axis Communications AB.
# Copyright 2022-2023 Axis Communications AB and others.
# For a full list of individual contributors, please see the commit history.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -28,9 +28,8 @@
)
def test_json_schema(filename):
with open(filename) as input_file:
data = input_file.read()
event_schema = json.loads(input_file.read())

event_schema = json.loads(data)
stricter_metaschema = dict(
jsonschema.Draft4Validator.META_SCHEMA, additionalProperties=False
)
Expand Down

0 comments on commit 0be89f8

Please sign in to comment.