It depends on the version of the annotations that you're using. I believe there is a 'dataType' property in the annotation that lets you specify a FQ class. Try using java.util.Date
> On May 26, 2017, at 10:53 PM, Dan Tran <dant...@gmail.com> wrote: > > Hi > > By default swagger-maven-plugin generates the below block for > java.time.Instant > > "xxxName" : { > "type" : "integer", > "format" : "int64" > }, > > However, my actual payload is a ISO8601 format using internal custom > serializer with Jackson ObjectMapper. Therefor if I regen the swagger spec > to java gain to be used at client side. I cant use them since it map > time.Instant at server side to int64 and my client side expects a String as a > minimum > > I there a way to me to annotate my server model side so that i can generate > Instant file to a String (preferred) > > > "xxxName" : { > "type" : "string", > }, > > or > > "xxxName" : { > "type" : "string", > "format" : "date-time" > }, > > > Thanks > > -Dan > -- > You received this message because you are subscribed to the Google Groups > "Swagger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to swagger-swaggersocket+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.