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
If I have an action which accepts a model decorated with FromForm which contains a property of type IFormFile which has a NotEmpty rule, the OpenAPI schema is generated and unexpectedly has nullable: true on that property.
I expected the property to not be nullable because of the NotEmpty rule.
The unit test in IFormFileTests passes successfully, but when I view the swagger UI or generated swagger.json of the UploadFile action in SampleNSwagWebApi, nullable is set to true.