feat: add security scheme config to openapi (#1122)#1211
Open
tengfeisky wants to merge 2 commits intosparckles:mainfrom
Open
feat: add security scheme config to openapi (#1122)#1211tengfeisky wants to merge 2 commits intosparckles:mainfrom
tengfeisky wants to merge 2 commits intosparckles:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
✨ No issues found! Your code is sparkling clean! ✨ Need help? Join our Discord for support! |
for more information, see https://pre-commit.ci
CodSpeed Performance ReportMerging #1211 will not alter performanceComparing Summary
|
sansyrox
reviewed
Jul 16, 2025
| "security": [], | ||
| } | ||
|
|
||
| def add_global_security_scheme(self, name: str, scheme: dict): |
sansyrox
reviewed
Jul 16, 2025
Comment on lines
+269
to
+272
| if self.authentication_handler: | ||
| # self.authentication_handler.token_getter | ||
| self.openapi.add_global_security_scheme(name="bearerAuth", scheme={"type": "http", "scheme": "bearer"}) | ||
|
|
Member
There was a problem hiding this comment.
and what would be the other kinds of auth here?
5fb08e0 to
0472e42
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes #1122
Summary
This PR adds support for configuring security schemes in the generated OpenAPI specification.
PR Checklist
Please ensure that:
Pre-Commit Instructions: