Skip to content

Preserve OAuth settings in offline FastAPI Swagger docs - #447

Merged
lesnik512 merged 1 commit into
mainfrom
fix/fastapi-offline-swagger
Nov 6, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/fastapi-offline-swagger

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Closes #437.

Summary

  • Forward FastAPI's OAuth initialization and Swagger UI settings to the offline docs renderer.
  • Prefix a configured OAuth callback URL with the validated request root path.
  • Compare native and offline Swagger HTML behind /api for the client ID, PKCE, persistAuthorization, and callback URL.

Verification

  • All four regression cases failed before the fix and passed afterward.
  • Offline docs tests passed on FastAPI 0.112.2 and 0.162.0.
  • just test-ci passed with 662 tests and 100% line coverage. Ruff and ty passed.

@lesnik512
lesnik512 merged commit e19a471 into main Nov 6, 2026
35 checks passed
@lesnik512
lesnik512 deleted the fix/fastapi-offline-swagger branch November 6, 2026 09:58
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.

[P2] Preserve OAuth and UI settings in offline FastAPI docs

1 participant