Closed tdashworth closed 1 month ago
Just tested, it seems so 😞
RouteGroupBuilder group = app.MapGroup("/test-group");
group.WithGroupName("test_group").WithDescription("test description"); // Comment this out and it works
group.MapGet("/test", () => "Test");
FYI, I am using .NET7
Add .WithOpenApi()
to the group.
Does IncludeInOpenApi() work?
On Wed, 19 Apr 2023 at 17:58, Christopher Leigh @.***> wrote:
Add .WithOpenApi() to the group.
— Reply to this email directly, view it on GitHub https://github.com/CarterCommunity/Carter/issues/317#issuecomment-1515069571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZVJS7ANVD5HHJ2OS42XTXCAKSLANCNFSM6AAAAAAT37AP6M . You are receiving this because you commented.Message ID: @.***>
@tdashworth I just spent some time figuring out the same issue. Turns out you should use WithTags("test_group")
because WithGroupName
actually lets you select which API definition your requests should be shown for. Since that definition defaults to the name of an entry assembly, WithGroupName("test_group")
implicitly hid your requests. See https://github.com/dotnet/aspnetcore/issues/34541 for more info.
@alexalok Thanks so much for getting back!
Must be a bug in aspnet core or in swagger ui. Carter simply calls the aspnet core OpenAPI methods