Drf-standardized-errors

Latest version: v0.14.1

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

Scan your dependencies

Page 2 of 3

0.12.3

Added
- add support for python 3.11

0.12.2

Added
- When a custom validator class defines a `code` attribute, add it to the list of error codes of raised by
the corresponding field.
- add support for DRF 3.14

0.12.1

Fixed
- generate the mapping for discriminator fields properly instead of showing a "null" value in the generated schema (12).

0.12.0

Added
- add support for automatically generating error responses schema with [drf-spectacular](https://github.com/tfranzel/drf-spectacular).
Check out the [corresponding documentation page](https://drf-standardized-errors.readthedocs.io/en/latest/openapi.html)
to know more about the integration with drf-spectacular.
- add support for django 4.1

0.11.0

Changed (Backward-incompatible)
- Removed all imports from `drf_standardized_errors.__init__.py`. This avoids facing the `AppRegistryNotReady` error
in certain situations (fixes 7). This change **only affects where functions/classes are imported from**, there are
**no changes to how they work**. To upgrade to this version, you need to:
- Update the `"EXCEPTION_HANDLER"` setting in `REST_FRAMEWORK` to `"drf_standardized_errors.handler.exception_handler"`.
- If you imported the exception handler directly, make sure the import looks like this
`from drf_standardized_errors.handler import exception_handler`.
- If you imported the exception handler class, make sure the import looks like this
`from drf_standardized_errors.handler import ExceptionHandler`.
- If you imported the exception formatter class, make sure the import looks like this
`from drf_standardized_errors.formatter import ExceptionFormatter`.

0.10.2

Fixed
- disable tag creation by the "create GitHub release" action since it is already created by tbump

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.