Skip to content

Commit

Permalink
Don't send back entire API schema to clients after validation failures
Browse files Browse the repository at this point in the history
  • Loading branch information
Judd Vinet committed Jun 1, 2016
1 parent a83598d commit c80e1d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connexion/decorators/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def validate_schema(self, data):
validate(data, self.schema, format_checker=draft4_format_checker)
except ValidationError as exception:
logger.error("{url} validation error: {error}".format(url=flask.request.url,
error=exception))
return problem(400, 'Bad Request', str(exception))
error=exception.message))
return problem(400, 'Bad Request', str(exception.message))

return None

Expand Down

0 comments on commit c80e1d3

Please sign in to comment.