RicoSuter/NSwag
View on GitHub.net6 minimal API - OpenApiOperation Attribute does not work
Open
#3,802 opened on Dec 21, 2021
help wanted
Repository metrics
- Stars
- (6,291 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
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;
}