Skip to content

Feat | Add support for OpenAPI 3.1 [CU-86b7bdpnw]#4

Open
matiasperrone-exo wants to merge 1 commit intomasterfrom
feat/openapi---3.1
Open

Feat | Add support for OpenAPI 3.1 [CU-86b7bdpnw]#4
matiasperrone-exo wants to merge 1 commit intomasterfrom
feat/openapi---3.1

Conversation

@matiasperrone-exo
Copy link

@matiasperrone-exo matiasperrone-exo commented Mar 4, 2026

Task:

Ref: https://app.clickup.com/t/86b7bdpnw (CU-86b7bdpnw)

@matiasperrone-exo matiasperrone-exo self-assigned this Mar 4, 2026
@matiasperrone-exo matiasperrone-exo changed the title Feat | Add support for OpenAPI 3.1 Feat | Add support for OpenAPI 3.1 [CU-86b7bdpnw] Mar 5, 2026
Copy link

@martinquiroga-exo martinquiroga-exo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matiasperrone-exo please review comments.

@matiasperrone-exo
Copy link
Author

@martinquiroga-exo please review again:

Files changed:

  • backend/openapi_schema.py (new) — MarketingAutoSchema with get_tags() (checks OAuth2Authentication in authentication_classes) and get_auth() (returns [] for public, [{'OAuth2': []}] for private)
  • backend/settings.py — updated DEFAULT_SCHEMA_CLASS to backend.openapi_schema.MarketingAutoSchema, removed POSTPROCESSING_HOOKS and global SECURITY.
  • backend/openapi_hooks.py (deleted)

Note:

  • The check is OAuth2Authentication in authentication_classes rather than emptiness, because public views inherit DRF's default SessionAuthentication/BasicAuthentication from global settings.

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

Successfully merging this pull request may close these issues.

3 participants