Skip to content
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

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

Closed
mehdihadeli opened this issue Nov 14, 2022 · 4 comments · Fixed by #2414
Closed

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

mehdihadeli opened this issue Nov 14, 2022 · 4 comments · Fixed by #2414
Labels
p2 Medium priority
Milestone

Comments

@mehdihadeli
Copy link

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");
@domaindrivendev
Copy link
Owner

cc @captainsafia

@domaindrivendev domaindrivendev added the p2 Medium priority label Nov 15, 2022
@captainsafia
Copy link
Contributor

This PR adds support for the new metadata: #2414

@Havunen
Copy link

Havunen commented Mar 5, 2024

This is fixed in DotSwashbuckle

@martincostello
Copy link
Collaborator

#2414 will resolve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 Medium priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants