We are using Swagger (1.5.15) to visualize our rest api.
To represent time we use org.joda.LocalTime (can not use java8 time for legacy reasons). The api works as expected with time formatted as "HH:MM:SS", however, swagger shows this as
"LocalTime": {
"type": "object",
"properties": {
"chronology": {
"$ref": "#/definitions/Chronology"
},
"millisOfDay": {
"type": "integer",
"format": "int32"
},
"hourOfDay": {
"type": "integer",
"format": "int32"
},
...
Which (if I'm not gravely mistaken) means that the problem is not in the Swagger-UI.
We have tried different versions of Swagger together with
@ApiModelProperty(dataType = "org.joda.time.LocalTime", example = "10:11:12")
without luck.
Any help would be greatly appreciated.