Skip to content

Commit

Permalink
Update jsonschema and go from Draft 4 to Draft 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Apr 23, 2019
1 parent 2b80d7a commit d66584f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/dbt/api/object.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import copy
from collections import Mapping
from jsonschema import Draft4Validator
from jsonschema import Draft7Validator

from dbt.exceptions import JSONValidationException
from dbt.utils import deep_merge
Expand Down Expand Up @@ -79,7 +79,7 @@ def validate(self):
of this instance. If any attributes are missing or
invalid, raise a ValidationException.
"""
validator = Draft4Validator(self.SCHEMA)
validator = Draft7Validator(self.SCHEMA)

errors = set() # make errors a set to avoid duplicates

Expand Down
2 changes: 1 addition & 1 deletion core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def read(fname):
'requests>=2.18.0,<3',
'colorama==0.3.9',
'agate>=1.6,<2',
'jsonschema==2.6.0',
'jsonschema>=3.0.1,<4',
'json-rpc>=1.12,<2',
'werkzeug>=0.14.1,<0.15',
]
Expand Down

0 comments on commit d66584f

Please sign in to comment.