Skip to content

Commit 28e3ff1

Browse files
committed
Updating to use draft 7
1 parent d719203 commit 28e3ff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elastalert/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class RulesLoader(object):
9090

9191
def __init__(self, conf):
9292
# schema for rule yaml
93-
self.rule_schema = jsonschema.Draft4Validator(
93+
self.rule_schema = jsonschema.Draft7Validator(
9494
yaml.load(open(os.path.join(os.path.dirname(__file__), 'schema.yaml')), Loader=yaml.FullLoader))
9595

9696
self.base_config = copy.deepcopy(conf)

elastalert/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$schema: http://json-schema.org/draft-04/schema#
1+
$schema: http://json-schema.org/draft-07/schema#
22
definitions:
33

44
# Either a single string OR an array of strings

0 commit comments

Comments
 (0)