Describe the bug
Expected behavior
Remove the summary field "nullable": true configuration
Actual behavior
No response
Steps to reproduce
No response
Exception(s) (if any)
Use the net9 default webapi template
Add or modify the following configuration
builder.Services.AddSwaggerGen(c => c.NonNullableReferenceTypesAsRequired());
app.UseSwagger();
app.UseSwaggerUI();
Remove the ? in front of the Summary attribute.
public class WeatherForecast
{
public string Summary { get; set; }
}
Swashbuckle.AspNetCore version
7.3.1
.NET Version
net9
Anything else?
No response