Skip to content

Conversation

@IGx89
Copy link

@IGx89 IGx89 commented Oct 24, 2025

Fixes the security requirement not actually being added to the OpenAPI spec in the last code example in the "Use document transformers" section of https://learn.microsoft.com/en-us/aspnet/core/fundamentals/openapi/customize-openapi?view=aspnetcore-10.0#use-document-transformers

Every operation before this change:

"security": [{ }]

After:

"security": [{ "Bearer": [] }]

Fixes the security requirement not actually being added to the OpenAPI spec.
@IGx89
Copy link
Author

IGx89 commented Oct 24, 2025

CC @xC0dex for review

@xC0dex
Copy link
Contributor

xC0dex commented Oct 24, 2025

You're so right! Thanks for the fix!

@guardrex guardrex requested a review from captainsafia October 25, 2025 10:15
@guardrex guardrex self-assigned this Oct 25, 2025
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