Skip to content

Conversation

@matthewelwell
Copy link
Contributor

Changes

Replace drf-yasg with drf-spectacular.

Motivation: support OpenAPI 3.0.

Resolves #6183

TODO (from #6183):

  • Adapt api.openapi.PydanticResponseCapableSwaggerAutoSchema.
  • Remove custom Meta and other means that produce the bespoke "type" union schema fields.
  • Make sure the /api/v1/docs/?format=openapi provides the same output, but the union types are correctly expressed with anyOf.
  • Make sure that the new schema is consumable by an OpenAPI code generator, e.g., @rtk-query/codegen-openapi.

How did you test this code?

Ran the API locally and verified that the docs loaded.

@vercel
Copy link

vercel bot commented Oct 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs Ignored Ignored Oct 21, 2025 2:04pm
flagsmith-frontend-preview Ignored Ignored Oct 21, 2025 2:04pm
flagsmith-frontend-staging Ignored Ignored Oct 21, 2025 2:04pm

💡 Enable Vercel Agent with $100 free credit for automated AI reviews

@github-actions github-actions bot added api Issue related to the REST API feature New feature or request labels Oct 21, 2025
@khvn26 khvn26 mentioned this pull request Oct 21, 2025
4 tasks
@matthewelwell
Copy link
Contributor Author

Superseded by the machines in #6185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Issue related to the REST API feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenAPI schema is broken

2 participants