Open brianpursley opened 2 weeks ago
Have you tried to rebuild and rerun the swagger? Since I was facing this issue as well but it got corrected when i cleaned & rebuild the solution. I dont know if it makes sense, just want to get your clarity. @gfoidl
Is there an existing issue for this?
Describe the bug
When doing this:
Assuming there is a
FooController
, the generated OpenAPI spec incorrectly says the path is/Foo
instead of/prefix/Foo
:Trying to curl both
/Foo
and/prefix/Foo
shows that the wrong path was generated in the OpenAPI spec:Interestingly, this problem only happens with
MapControllers()
and minimal API endpoints created usingMapGet()
for example don't experience this problem. See the steps to reproduce to see what I mean.Expected Behavior
The OpenAPI spec should generate the correct path when using
MapGroup()
withMapControllers()
.Steps To Reproduce
Program.cs
Exceptions (if any)
No response
.NET Version
8.0.401
Anything else?