Support emitting OpenAPI documents in YAML format #58516
Labels
area-minimal
Includes minimal APIs, endpoint filters, parameter binding, request delegate generator etc
feature-openapi
Milestone
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
.The text was updated successfully, but these errors were encountered: