-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Support emitting OpenAPI documents in YAML format #58516
Comments
@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 #58616 with a proposed implementation. Let me know what you think about it? |
@captainsafia does this feature request also cover the build-time generation of YAML OpenAPI docs? IIUC #58616 covers the case in which the document is generated/retrieved at runtime, but build-time only supports JSON. |
Closing this out for now since support has shipped in .NET 10 Preview 1. In the meantime, for folks wanting to address this gap, @martincostello has provided an API for this in their OpenApi.Extensions library over at https://github.com/martincostello/openapi-extensions. |
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: