Hi.
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.
It may be related to #24
See #130
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.


Thank you.
Hi.
If I have an action which accepts a model decorated with
FromFormwhich contains a property of typeIFormFilewhich has aNotEmptyrule, the OpenAPI schema is generated and unexpectedly hasnullable: trueon that property.I expected the property to not be nullable because of the
NotEmptyrule.It may be related to #24
See #130
The unit test in
IFormFileTestspasses successfully, but when I view the swagger UI or generated swagger.json of theUploadFileaction inSampleNSwagWebApi,nullableis set to true.Thank you.