Skip to content

Commit df3a163

Browse files
authored
Merge pull request Yelp#2478 from JeffAshton/upgrade-json-schema
Upgrading jsonschema library to 3.0.2
2 parents 811ba59 + 28e3ff1 commit df3a163

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ elasticsearch>=7.0.0
1010
envparse>=0.2.0
1111
exotel>=0.1.3
1212
jira>=1.0.10,<1.0.15
13-
jsonschema>=2.6.0
13+
jsonschema>=3.0.2
1414
mock>=2.0.0
1515
py-zabbix==1.1.3
1616
PyStaticConfiguration>=0.10.3

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
'envparse>=0.2.0',
3838
'exotel>=0.1.3',
3939
'jira>=1.0.10,<1.0.15',
40-
'jsonschema>=2.6.0,<3.0.0',
40+
'jsonschema>=3.0.2',
4141
'mock>=2.0.0',
4242
'PyStaticConfiguration>=0.10.3',
4343
'python-dateutil>=2.6.0,<2.7.0',

0 commit comments

Comments
 (0)