RicoSuter/NSwag
在 GitHub 查看.net6 minimal API - OpenApiOperation Attribute does not work
Open
#3,802 建立於 2021年12月21日
help wanted
描述
Using Nswag.Annotations.OpenApiOperation does not seem to work with the new minimal API.
Example code:
var app = builder.Build();
app.MapPost("/Test", Test).WithTags("MyTag");
[OpenApiOperation("MySummary", "MyDescription")]
static string Test(string foo) {
return foo;
}