I have swagger 2.8.0 and My POJO class is as follows,
public class Item {
   @JsonFormat(pattern="yyyy-MM-dd")
   private LocalDate date;
   @JsonFormat(pattern="HH:mm")
   private LocalTime time;
   // other fields and Getters and Setters are omitted for brevity
}
Now in the swagger-ui, in the example value section, my POJO model is shown as
{
  "date": "string",
  "time": {
    "hour": 0,
    "minute": 0,
    "nano": 0,
    "second": 0
  }
}
How to show the LocalTime as a string in the swagger-ui?
 
     
    