Django-swagger-tester

Latest version: v2.2.1

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

Scan your dependencies

Page 2 of 4

2.0.0

**Breaking changes**

Version 2.0.0 introduces new required package settings, which means *existing implementations will need to set up new ``SWAGGER_TESTER`` settings before package functions will run*. See [docs](https://django-swagger-tester.readthedocs.io/en/latest/configuration.html#settings) for instructions.

Specifically:

* New required setting, ``SCHEMA_LOADER``, was added.
* Existing setting, ``CASE``, was replaced by new setting, ``CASE_TESTER``, which now takes a callable case validation function rather than a string.

**Non-breaking changes**

* New optional setting, ``CASE_PASSLIST``, was added, allowing projects to exclude keys from case checking on a general basis.
* Excess schema iterations have been eliminated, and code made more consise by consolidating case checking, response checking, and response data checking into a single loop.
* Shared schema loading logic consolidated in a schema loading base class, making it easy to create new loading classes for currently unsupported swagger implementations. This also allows us to unify the API for the ``validate_response`` function, rather than having separate import paths per implementation.
* Upgraded demo project from Django 2.2.6 to Django 3.1
* Improved test suite, test coverage, and fixed a number of minor bugs from v1

1.0.5

When passing a route with query parameters to `validate_response` the resolver utility function would throw an error. This update adds handling for this.

1.0.4

- Fixed typos
- Improved case-error error messages, and made messages consistent

1.0.3

* Added support for nullable arrays and objects.
* Added custom error hint for nullable arrays and objects.
* Added multi-line hints to response error messages.

1.0.2

- Improved handling of missing json response attribute.
- Made errors more concise, added error hints, and added verbose error messages.
- Further improved robustness of our route handling.

1.0.1

**Improvements**

* Added handling of 204 HTTP responses.
* Improved exception handling for missing request bodies.
* Improved robustness of our route handling.

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.