I have a DTO model like this, which I post to the Web API:
public class AddUpdateFundHouseDto : DtoBase
{
    [Required]
    public string ShortName { get; set; }
    [Required]
    public string FullName { get; set; }
    public IFormFile LogoImage { get; set; }
}
I have kept LogoImage non required knowingly to handle the entity update where the logo image is not mandatory but I am still getting model invalid below error about LogoImage when I check it from Swagger.
{
  "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
  "title": "One or more validation errors occurred.",
  "status": 400,
  "traceId": "00-a9e895fe7e88261c7d587b083ad70ba3-6f94424b94e7e2c9-00",
  "errors": {
    "LogoImage": [
      "The LogoImage field is required."
    ]
  }
}
It works fine when I pass the file.
So is it not allowed to make IFormFile type non mandatory or something I am missing?
 
                        

I believe the [Required] attribute is implied by default when the property is not nullable. Try making the property nullable e.g.: