Specify JsonValidatorversion explicitly
without doing that, it exclusiveMaximum raises an exception as jsonschema defaults to the latest version (Draft6) which changes behaviour of this property. fixes #1233
This commit is contained in:
@@ -275,7 +275,7 @@ class Configuration(object):
|
||||
:return: Returns the config if valid, otherwise throw an exception
|
||||
"""
|
||||
try:
|
||||
validate(conf, constants.CONF_SCHEMA)
|
||||
validate(conf, constants.CONF_SCHEMA, Draft4Validator)
|
||||
return conf
|
||||
except ValidationError as exception:
|
||||
logger.critical(
|
||||
|
||||
Reference in New Issue
Block a user