Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
dotnet-getdocument is the tool that is used by Microsoft.Extensions.ApiDescription.Server with Microsoft.AspNetCore.OpenApi to generate documentation at build time.
Currently, the tool can generate only JSON OpenAPI spec.
It would be nice to see YAML
output as well, which has been commonly used with the Swagger
generator.
Describe the solution you'd like
Support a flag to specify output format, for example
<OpenApiGenerateDocumentsOptions>--format yaml</OpenApiGenerateDocumentsOptions>
or similar to dotnet swagger
<OpenApiGenerateDocumentsOptions>--yaml</OpenApiGenerateDocumentsOptions>
Additional context
No response