Open john-shika opened 2 weeks ago
@john-shika Thanks for filing this issue! It was originally requested in the OpenAPI meta-issue but I never got around to implementing it.
I've opened https://github.com/dotnet/aspnetcore/pull/58616 with a proposed implementation. Let me know what you think about it?
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
I am trying to do configuration
OpenApi
with YAML format, some research, it can be tricky, because need access toMicrosoft.OpenApi
document instead ofMicrosoft.AspNetCore.OpenApi
extension, that know is not accessing by public (internal sealed class), must be rewrite entireOpenApi
extension with self-version or waiting some feature.Describe the solution you'd like
I am supposed to try this one, but some restricted access some object classes, warning in my IDE the object classes is internal sealed class, so I give my idea, in the comment below
this is method yoink origin method from
Microsoft.AspNetCore.OpenApi.Extensions
Additional context
Oh Yap, I am trying added Bearer JWT from samples in
Microsoft.OpenApi
, it works but must be complicated because need security Bearer for each-endpoint, make some extensions and parsing tags instead ofAuthorize
attribute class because there not parsing and exists inOpenApiDocument
, trigger some tag haveJWT
and added security bearer for specific endpoints, but this is bad lookex. code like this one
I must be added
Authorize
and TagTagNames.BearerJwt
for trigger my extension to create security bearer for specific endpoints, why not addedAuthorize
attribute information inOpenApiDocument
so I can create security bearer with easy ways :)but thanks for reading my problems, and I am appreciating your hard works, If there are any mistakes from me, please forgive me, because this is my first time using
Microsoft.AspNetCore.OpenApi
.