Pyramid-swagger

Latest version: v2.9.0

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

Scan your dependencies

Page 5 of 7

1.5.0rc2

++++++++++++++++++++++

* Form-encoded bodies are now validated correctly.
* Fixed bug in `required` swagger attribute handling.

1.5.0rc1

++++++++++++++++++++++

* Added ``enable_api_docs_views`` configuration option so /api-docs
auto-registration can be disabled in situations where users want to serve
the Swagger spec in a nonstandard way.
* Added ``exclude_routes`` configuration option. Allows a blacklist of Pyramid
routes which will be ignored for validation purposes.
* Added ``generate_resource_listing`` configuration option to allow
pyramid_swagger to generate the ``apis`` section of the resource listing.
* Bug fix for issues relating to ``void`` responses (See `Issue 79`_)
* Added support for header validation.
* Make casted values from the request available through
``request.swagger_data``

.. _Issue 79: https://github.com/striglia/pyramid_swagger/issues/79

1.4.0

++++++++++++++++++

* Added ``validation_context_path`` setting which allows the user to specify a
path to a contextmanager to custom handle request/response validation
exceptions.

1.3.0

++++++++++++++++++

* Now throws RequestValidationError and ResponseValidationError instead of
HTTPClientError and HTTPInternalServerError respectively. The new errors
subclass the old ones for backwards compatibility.

1.2.0

++++++++++++++++++

* Added ``enable_request_validation`` setting which toggles whether request
content is validated.
* Added ``enable_path_validation`` setting which toggles whether HTTP calls to
endpoints will 400 if the URL is not described in the Swagger schema. If this
flag is disabled and the path is not found, no validation of any kind is
performed by pyramid-swagger.
* Added ``exclude_paths`` setting which duplicates the functionality of
`skip_validation`. `skip_validation` is deprecated and scheduled for removal
in the 2.0.0 release.
* Adds LICENSE file
* Fixes misuse of webtest which could cause ``make test`` to pass while
functionality was broken.

1.1.1

++++++++++++++++++

* Fixes bug where response bodies were not validated correctly unless they were
a model or primitive type.
* Fixes bug where POST bodies could be mis-parsed as query arguments.
* Better backwards compatibility warnings in this changelog!

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.