You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am going to take a look at these ( the controllers reports every Property of an object in the description, but MinimalApi seems to just report the type)
Almost there! I am thinking about make the OpenApi almost equal for WithOpenApi/MinimalApi/Controllers.
The only difference that exists right now is that controllers put each property of the object in the ApiDescription and Minimal doesn't.
There is a small issue when there are 2 or more properties ( for example strings in a Form).. The WithOpenApi extension method puts AllOf whereas MinimalApi just writes two properties ( Both options are correct).
Given the errors we had in previous versions it seems reasonable to do this breaking change(For WithOpenApi extensions)
To make things clearer I am going to create a PR with just the fix, and apply later in the same PR the Breaking change
Describe the bug
I have the following endpoints:
These endpoints differ only for the
WithOpenApi
extension method, but theswagger.json
definition is quite different:So, in Swagger I get the following result:
WRONG

CORRECT

Expected behavior
Both the endpoints should produce the same
swagger.json
definition that defines the parameters fromForm
.Actual behavior
No response
Steps to reproduce
Minimal repro here: https://github.com/marcominerva/FromFormIssue
Exception(s) (if any)
No response
Swashbuckle.AspNetCore version
6.9.0
.NET Version
8.0.403
Anything else?
No response
The text was updated successfully, but these errors were encountered: