I have a DTO that contains other DTOs and a list of multipart files. I am trying to process that DTO but I can’t seem to be able to read the requst. When creating an example request from Swagger UI, I get the following exception: If I put @RequestBody instead of @ModelAttribute then I get Swagger dependencies: OpenAPI3.0 config: Answer