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

feat: Set bearerAuth global when SecurityScheme is empty #301

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

manuraf
Copy link
Contributor

@manuraf manuraf commented Aug 23, 2024

List of Changes

This pull request introduces a modification to handle an issue when merging with OpenAPI specifications generated via Quarkus happens. Specifically, the generated OpenAPI includes an empty security schema, which needs to be replaced with a bearerAuth global.

Motivation and Context

This update addresses an issue where the OpenAPI specification generated by Quarkus includes an empty SecurityScheme, which is not valid for API security. By replacing this with a bearerAuth scheme, the OpenAPI spec will correctly define security requirements for the endpoints.

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@manuraf manuraf requested a review from a team as a code owner August 23, 2024 10:24
@manuraf manuraf changed the title feat: Set bearerAuth global when SecurityScheme exists feat: Set bearerAuth global when SecurityScheme is empty Aug 23, 2024
@manuraf manuraf merged commit 9a6481d into main Aug 23, 2024
19 checks passed
@manuraf manuraf deleted the feature/set-security-schema-as-bearer-auth branch August 23, 2024 10:47
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.

1 participant