how to specify a list of lists of an object

106 views
Skip to first unread message

Willie Slepecki

unread,
Nov 14, 2014, 8:39:51 AM11/14/14
to swagger-sw...@googlegroups.com
now do i tell swagger to handle this object type as a response

ArrayList<List<NameValue>>()

here is an example of my annotation

@ApiOperation(value = "Validate", notes = "Validate", 
response = NameValue.class, responseContainer = "List")

Thank you

Ron

unread,
Nov 14, 2014, 8:41:38 AM11/14/14
to swagger-sw...@googlegroups.com
In Swagger 1.2/Swagger-core 1.3.X, you can't have arrays of arrays.

--
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-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages