Drf-spectacular

Latest version: v0.27.2

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

Scan your dependencies

Page 1 of 11

0.27.2

-------------------

- fix non-translated enum override hash `1198 <https://github.com/tfranzel/drf-spectacular/issues/1198>`_
- higher order hints for extend_schema_field (case 2) `1174 <https://github.com/tfranzel/drf-spectacular/issues/1174>`_ `#1212 <https://github.com/tfranzel/drf-spectacular/issues/1212>`_
- Add support for TypeAliasType (`1214 <https://github.com/tfranzel/drf-spectacular/issues/1214>`_) [igorgaming]
- DRF 3.15 counteract new assertion for tests
- Add a specific Action Wrapper for OAuth Authorization requests `1190 <https://github.com/tfranzel/drf-spectacular/issues/1190>`_ [Bram Esposito]
- Update SWAGGER_UI_DIST settings.rst [Alfie Day]
- fix custom http_method_names for actions `1184 <https://github.com/tfranzel/drf-spectacular/issues/1184>`_
- Add support for direct usage of higher order hints `1174 <https://github.com/tfranzel/drf-spectacular/issues/1174>`_
- Document ``extend_schema_view`` support for ``action`` (`1178 <https://github.com/tfranzel/drf-spectacular/issues/1178>`_) [johnthagen]
- remove official 3.6 support due to upstream breakage.
- Add auth extension for django-rest-knox [Callum Gare]
- fix yaml encoder for OrderedDict objects `1158 <https://github.com/tfranzel/drf-spectacular/issues/1158>`_
- fix linter warning `1158 <https://github.com/tfranzel/drf-spectacular/issues/1158>`_
- Update link to redoc settings [Andrey Otto]
- Add tags support to OpenApiWebhook [Federico Bond]
- set Cross-Origin-Opener-Policy on Swagger-UI view [ftsell]

Breaking changes / important additions:

- Some bugfixes and some functionality gaps closed.

0.27.1

-------------------

- differentiate test cases for 3.1 null cases `1139 <https://github.com/tfranzel/drf-spectacular/issues/1139>`_
- add enum suffix setting [Jonny Beaumont]
- Fix handling of metadata when using OAS 3.1 [Viicos]
- Provide all fixed field names for the components object [Sergei Maertens]
- coerse Decimal to float format explicitly `1134 <https://github.com/tfranzel/drf-spectacular/issues/1134>`_
- bugfix test `1133 <https://github.com/tfranzel/drf-spectacular/issues/1133>`_
- add OAS 3.1 null translation case `1133 <https://github.com/tfranzel/drf-spectacular/issues/1133>`_
- Add OpenAPI 3.1 webhook support [Federico Bond]
- add OAS 3.1 null case

Breaking changes / important additions:

- Fixed some OAS 3.1 corner cases and added support for ``Webhooks`` (3.1) in addition to existing ``Callbacks``

0.27.0

-------------------

- improve mypy typing `600 <https://github.com/tfranzel/drf-spectacular/issues/600>`_
- add django 5 to test suite and adapt to changes `1126 <https://github.com/tfranzel/drf-spectacular/issues/1126>`_
- Use correctly allowed http methods for schema generation [Jekel]
- OAS 3.1
- Fix Enum collision with same choices & varying labels `790 <https://github.com/tfranzel/drf-spectacular/issues/790>`_ `#1104 <https://github.com/tfranzel/drf-spectacular/issues/1104>`_
- Undo adding middleware [Jelmer Draaijer]
- Set JWTTokenUserAuthentication to None when missing [Jelmer Draaijer]
- Add setuptools required for packaging [Jelmer Draaijer]
- Add allauth.account.middleware.AccountMiddleware to middleware [Jelmer Draaijer]
- Add Python 3.12 to test matrix and add classifiers [Jelmer Draaijer]
- Add official support for pydantic decoration.
- bugfix ignored OpenApiRequest case `1106 <https://github.com/tfranzel/drf-spectacular/issues/1106>`_
- JSONField may also be a non-object/primitive `1095 <https://github.com/tfranzel/drf-spectacular/issues/1095>`_
- add test for empty whitelist (no auth) `1094 <https://github.com/tfranzel/drf-spectacular/issues/1094>`_
- Avoid ChoiceField duplicate enum values for allow_null, allow_blank (`1085 <https://github.com/tfranzel/drf-spectacular/issues/1085>`_) [Marti Raudsepp]
- add test for django-filter and ListAPIView `1086 <https://github.com/tfranzel/drf-spectacular/issues/1086>`_
- Fix the blueprint for pydantic version 2 [Carmen Alvarez]

Breaking changes / important additions:

- Biggest release in quite some time that contains a bunch of long running PR that finally found their way into master.
- We now officially support OpenAPI 3.1 and Pydantic 2
- Quite a few bug fixes (thanks to all contributors) and improved typing

0.26.5

-------------------

- update FAQ entry on extension loading
- Fix (`1079 <https://github.com/tfranzel/drf-spectacular/issues/1079>`_) crash when generating schema for field with UUID choices. [Pedro Borges]
- chore: fix typos [Heinz-Alexander Fuetterer]
- Use schema_url in SpectacularElementsView (`1067 <https://github.com/tfranzel/drf-spectacular/issues/1067>`_) [q0w]
- add helper to disable viewset list detection `1064 <https://github.com/tfranzel/drf-spectacular/issues/1064>`_
- pin django-allauth test dep due to breaking change with dj-rest-auth
- fix example building for pagination with basic list `1055 <https://github.com/tfranzel/drf-spectacular/issues/1055>`_
- Fix discarded falsy examples values `1049 <https://github.com/tfranzel/drf-spectacular/issues/1049>`_

Breaking changes / important additions:

- Added helper function ``forced_singular_serializer`` to disable a list detection on a endpoint, that has been quite difficult to properly
undo previously. This closes the functional gap for ``extend_schema_serializer(many=False)`` in single-use (non-envelope) situations.
- Several small bugfixes

0.26.4

-------------------

- fix django-polymorphic empty serializer case `1029 <https://github.com/tfranzel/drf-spectacular/issues/1029>`_ `#542 <https://github.com/tfranzel/drf-spectacular/issues/542>`_
- Add a blueprint for pydantic 2 [Carmen Alvarez]
- bugfix exclude behavior on subclassing `1025 <https://github.com/tfranzel/drf-spectacular/issues/1025>`_
- relax django-filter subclassing restriction `1022 <https://github.com/tfranzel/drf-spectacular/issues/1022>`_
- factor out serializer name estimation for easier modification `976 <https://github.com/tfranzel/drf-spectacular/issues/976>`_
- Fixing Pydantic Extension (`1021 <https://github.com/tfranzel/drf-spectacular/issues/1021>`_) [sydney-runkle]
- add Authorization header for oauth2 Bearer token [Danial]
- allow already supported lazy string in types `982 <https://github.com/tfranzel/drf-spectacular/issues/982>`_

Breaking changes / important additions:

- some minor bugfixes as well as improvements to ``django-filter`` and ``django-polymorphic``.
- it is now significantly easier to adapt serializer naming via ``AutoSchema`` subclassing.

0.26.3

-------------------

- allow implicit list expansion of PolymorphicProxySerializer `995 <https://github.com/tfranzel/drf-spectacular/issues/995>`_
- selectively distinguish real serializers from mocked ones `1006 <https://github.com/tfranzel/drf-spectacular/issues/1006>`_
- fix functionality gap for decoration of django-filter fields `1007 <https://github.com/tfranzel/drf-spectacular/issues/1007>`_
- add pydantic blueprint
- robustify subclass check in extensions `1006 <https://github.com/tfranzel/drf-spectacular/issues/1006>`_
- Prevent exception for non-serializer classes targeted by SerializerExtensions `1006 <https://github.com/tfranzel/drf-spectacular/issues/1006>`_
- add middleware support for djangorestframework_camel_case
- close functionality gap in drf dataclasses naming `1004 <https://github.com/tfranzel/drf-spectacular/issues/1004>`_
- fix: Camelize query parameters [v.kovalchuk]
- docs(examples): Fix wrong bool value in example [schew2381]
- bugfix test `991 <https://github.com/tfranzel/drf-spectacular/issues/991>`_
- bugfix duplicate enum list for django-filter `991 <https://github.com/tfranzel/drf-spectacular/issues/991>`_
- dj-rest-auth test changes 3.x -> 4.x
- Add blocks to redoc template `978 <https://github.com/tfranzel/drf-spectacular/issues/978>`_

Breaking changes / important additions:

- no major changes but a multiude of small improvements.
- we are now a lot more tolerant when it comes to writing extensions for non-standard classes (e.g. Pydantic).
- there should be no unexpected schema changes except for when ``djangorestframework_camel_case``'s Middleware is used.

Page 1 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.