I have an endpoint to save some data. I mapped the input json to a class with name File.
@PutMapping(path = "/file")
public boolean save(@RequestBody File file) {
// logic
}
When hooked up with swagger, the swagger ui considers this as a file type input.
How can I force the value on swagger ui to consider it as a regular text instead of a file upload?
Expected:
I tried :
@PutMapping(path = "/file", consumes = "application/json")

