Bump drf-spectacular from 0.26.5 to 0.27.0
Bumps drf-spectacular from 0.26.5 to 0.27.0.
Release notes
Sourced from drf-spectacular's releases.
0.27.0
Important notes
- 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- If you use a custom version of
postprocess_schema_enums
, you might want to also manually addpostprocess_schema_enum_id_removal
, to remove the temporary ids we had to add. By default this action is done automatically.PRs
- Avoid ChoiceField duplicate enum values for allow_null, allow_blank by
@intgr
in tfranzel/drf-spectacular#1085- Fix the blueprint for pydantic version 2 by
@caarmen
in tfranzel/drf-spectacular#1030- bugfix ignored OpenApiRequest case #1106 by
@tfranzel
in tfranzel/drf-spectacular#1110- Add official support for pydantic decoration. by
@tfranzel
in tfranzel/drf-spectacular#1111- Add Python 3.12 to test matrix and add classifiers by
@foarsitter
in tfranzel/drf-spectacular#1096- Fix Enum collision with same choices & varying labels #790 #1104 by
@tfranzel
in tfranzel/drf-spectacular#1113- OAS 3.1 by
@tfranzel
in tfranzel/drf-spectacular#825- add django 5 to test suite and adapt to changes #1126 by
@tfranzel
in tfranzel/drf-spectacular#1127- improve mypy typing #600 by
@tfranzel
in tfranzel/drf-spectacular#620- Handle http method names passed for views in DRF for correct schema generation by
@jekel
in tfranzel/drf-spectacular#1075New Contributors
@jekel
made their first contribution in tfranzel/drf-spectacular#1075Full Changelog: https://github.com/tfranzel/drf-spectacular/compare/0.26.5...0.27.0
Changelog
Sourced from drf-spectacular's changelog.
0.27.0 (2023-12-12)
- improve mypy typing
[#600](https://github.com/tfranzel/drf-spectacular/issues/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) <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) <https://github.com/tfranzel/drf-spectacular/issues/790>
_[#1104](https://github.com/tfranzel/drf-spectacular/issues/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) <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) <https://github.com/tfranzel/drf-spectacular/issues/1095>
_- add test for empty whitelist (no auth)
[#1094](https://github.com/tfranzel/drf-spectacular/issues/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) <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) <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
Commits
-
9926bba
add setuptools for 3.12 release action -
d0bfbfc
version bump -
ba4a3a0
Merge branch 'pr1075' -
3aba75c
slightly improve condition for kwargs forwarding #1075 -
eea552d
Merge pull request #620 from tfranzel/improved_typing -
e0f4dd6
improve mypy typing #600 -
4ef322c
update docs -
0ec4d23
Merge pull request #1127 from tfranzel/django5 -
8ecee1b
fix new mypy complaints -
a8dcaf8
fix mypy version issues by pinning all relevant deps - Additional commits viewable in compare view