schema: change raise_err default to True

This commit is contained in:
Luna Mendes 2018-09-10 20:25:03 -03:00
parent cd5dbc4886
commit ee8cfedf69
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ class GatewayWebsocket:
self.state.presence = status
status = validate(status, GW_STATUS_UPDATE)
status = validate(status, GW_STATUS_UPDATE, False)
if not status:
# invalid status, must ignore

View File

@ -46,7 +46,7 @@ class LitecordValidator(Validator):
return value in statuses
def validate(reqjson, schema, raise_err: bool = False):
def validate(reqjson, schema, raise_err: bool = True):
validator = LitecordValidator(schema)
if not validator.validate(reqjson):
errs = validator.errors