Skip to content

WithSummary and WithDescription deson't work in minimal api #2548

@mehdihadeli

Description

@mehdihadeli

Hi,
I have a minimal api in .net 7, I used WithSummary() and WithDescription() bur it doesn't generate anything in swagger ui!

app.MapGet("/api/v{version:apiVersion}/weatherforecast/byid", () => { return new List<string>(); })
    .WithApiVersionSet(weatherforecasts)
    .HasApiVersion(1.0)
    .HasApiVersion(2.0)
    .WithName("weatherforecast-byid")
    .WithTags("WeatherForecast")
    .WithSummary("summary002")
    .WithDescription("description002");

Metadata

Metadata

Assignees

No one assigned

    Labels

    p2Medium priority

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions