Webargs

Latest version: v8.6.0

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 18

3.0.2

Not secure
******************

Bug fixes:

* Fix compatibility with marshmallow 3.0.0b12 (:pr:`242`). Thanks :user:`lafrech`.

3.0.1

Not secure
******************

Bug fixes:

* Respect `Parser.DEFAULT_VALIDATION_STATUS` when a `status_code` is not
explicitly passed to `ValidationError` (:issue:`180`). Thanks :user:`foresmac` for
finding this.

Support:

* Add "Returning HTTP 400 Responses" section to docs (:issue:`180`).

3.0.0

Not secure
******************

Changes:

* *Backwards-incompatible*: Custom error handlers receive the request object as the second
argument. Update any functions decorated with ``Parser.error_handler`` to take a `req` argument, like so:

.. code-block:: python

2.x
parser.error_handler
def handle_error(error):
raise CustomError(error.messages)


3.x
parser.error_handler
def handle_error(error, req):
raise CustomError(error.messages)

* *Backwards-incompatible*: Remove unused ``instance`` and ``kwargs`` arguments of ``argmap2schema``.
* *Backwards-incompatible*: Remove ``Parser.load`` method (``Parser`` now calls ``Schema.load`` directly).

These changes shouldn't affect most users. However, they might break custom parsers calling these methods. (:pr:`222`)

* Drop support for aiohttp<3.0.0.

2.1.0

Not secure
******************

Features:

* Respect ``data_key`` field argument (in marshmallow 3). Thanks
:user:`lafrech`.

2.0.0

Not secure
******************

Changes:

* Drop support for aiohttp<2.0.0.
* Remove use of deprecated `Request.has_body` attribute in
aiohttpparser (:issue:`186`). Thanks :user:`ariddell` for reporting.

1.10.0

Not secure
*******************

Features:

* Add support for marshmallow>=3.0.0b7 (:pr:`188`). Thanks
:user:`lafrech`.

Deprecations:

* Support for aiohttp<2.0.0 is deprecated and will be removed in webargs 2.0.0.

Page 9 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.