I have a java POJO which has a LocalDateTime property. The generated swagger always generates in "2016-01-08T22:34:22.337Z" format, but I don't need that format. Below is what I am trying in the POJO.
@JsonFormat(pattern = DATE_TIME_FORMAT)
private LocalDateTime dateTime;
I have noticed the @JsonFormat is not working at all, even if I remove that, its still defaulting to the above format.
I have even tried with :
@ApiModelProperty(required = true,example = "2016-01-01T09-10-50.ssZ")
Even that is not working.