Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination schemas are not OpenAPI 3.1 compatible by default #1360

Open
federicobond opened this issue Jan 6, 2025 · 0 comments
Open

Pagination schemas are not OpenAPI 3.1 compatible by default #1360

federicobond opened this issue Jan 6, 2025 · 0 comments

Comments

@federicobond
Copy link
Contributor

Describe the bug

When generating OpenAPI schemas for paginated responses, drf-spectacular does not apply the tweaks for OpenAPI 3.1 schemas found in the drf_spectacular.plumbing.append_meta function. The 3.0 schema is copied as is without changes.

To Reproduce

Create a paginated view and check the generated schema.

Expected behavior

An OpenAPI 3.1 compatible schema is returned. Individual field schemas should not contain nullable or example properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant