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 add postprocess_schema_enum_id_removal, to remove the temporary ids we had to add. By default this action is done automatically.
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>_
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps drf-spectacular from 0.26.5 to 0.27.0.
Release notes
Sourced from drf-spectacular's releases.
Changelog
Sourced from drf-spectacular's changelog.
Commits
9926bba
add setuptools for 3.12 release actiond0bfbfc
version bumpba4a3a0
Merge branch 'pr1075'3aba75c
slightly improve condition for kwargs forwarding #1075eea552d
Merge pull request #620 from tfranzel/improved_typinge0f4dd6
improve mypy typing #6004ef322c
update docs0ec4d23
Merge pull request #1127 from tfranzel/django58ecee1b
fix new mypy complaintsa8dcaf8
fix mypy version issues by pinning all relevant depsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show