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
Hi, i am using springfox version 2.9.2. I have setup spring boot v2.2.6 project with rest controllers. One of the rest controllers has following endpoint: @PostMapping(path = "/create", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity create(final Principal principal, @RequestPart Ticket ticket, @RequestPart(required = false) final MultipartFile[] attachments)
The issue is that the correct parameter content type is not generated for the parameter ticket which is a JSON type. I have tried to search for the answer every where & tried to debug the code but so far I couldn't find any thing.
What's the correct way so that the content type for request if form data whereas the content type of parameter ticket is json & swagger ui is able to submit it? Please help me out.
The text was updated successfully, but these errors were encountered:
Hi, i am using springfox version 2.9.2. I have setup spring boot v2.2.6 project with rest controllers. One of the rest controllers has following endpoint:
@PostMapping(path = "/create", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity create(final Principal principal, @RequestPart Ticket ticket, @RequestPart(required = false) final MultipartFile[] attachments)
The issue is that the correct parameter content type is not generated for the parameter ticket which is a JSON type. I have tried to search for the answer every where & tried to debug the code but so far I couldn't find any thing.
What's the correct way so that the content type for request if form data whereas the content type of parameter ticket is json & swagger ui is able to submit it? Please help me out.
The text was updated successfully, but these errors were encountered: