Skip to content

dotnet-getdocument support OpenAPI YAML format generation #61041

Open
@ArturAmpilogov

Description

@ArturAmpilogov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-openapi

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions