Skip to content

Commit

Permalink
Update changelog and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Sep 30, 2016
1 parent 68b4a7f commit 729fea5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
Changelog
---------

1.4.0 (2016-09-29)
******************

Bug fixes:

* Prevent error when rendering validation errors to JSON in Flask (e.g. when using Flask-RESTful) (:issue:`122`). Thanks :user:`frol` for the catch and patch. NOTE: Though this is a bugfix, this is a potentially breaking change for code that needs to access the original ``ValidationError`` object.

.. code-block:: python
# Before
@app.errorhandler(422)
def handle_validation_error(err):
return jsonify({'errors': err.messages}), 422
# After
@app.errorhandler(422)
def handle_validation_error(err):
# The marshmallow.ValidationError is available on err.exc
return jsonify({'errors': err.exc.messages}), 422
1.3.4 (2016-06-11)
******************

Expand Down
2 changes: 1 addition & 1 deletion webargs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from webargs.core import argmap2schema, WebargsError, ValidationError
from webargs import fields

__version__ = '1.3.4'
__version__ = '1.4.0'
__author__ = 'Steven Loria'
__license__ = 'MIT'

Expand Down

0 comments on commit 729fea5

Please sign in to comment.