I have a REST endpoint in my java webapp that accepts an Instant as a query parameter as seen in the code below
@GET
@Produces(MediaType.APPLICATION_JSON)
Response getHistory(
@QueryParam("beforeTime")
Instant beforeTime,
@QueryParam("afterTime")
Instant afterTime) {
...
}
This worked well under swagger 1.x, but when we switch to swagger 2.x the objects of Instant are showing up as $int64 instead of a date-time field. What can I do with the swagger annotations to get this to work?