Swagger UI - hashmap not rendering in response model

492 views
Skip to first unread message

Mauro Roberto

unread,
Nov 16, 2016, 6:25:23 AM11/16/16
to Swagger
I am using springfox version 2.5.0 with swagger annotations 1.5.0

In my class  I have defined the field:

private HashMap<String, Device> devices;

In the swagger-ui response model it get rendered with brackets 

"devices": {}

Can anyone point me what needs to be done in order get the hashmap  rendered as part of the  swagger-ui response model ?

Thanks in advance

Ron Ratovsky

unread,
Nov 16, 2016, 11:03:56 AM11/16/16
to swagger-sw...@googlegroups.com

Swagger-ui doesn’t render maps at the moment.

--
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.

Mauro Roberto

unread,
Nov 16, 2016, 11:22:52 AM11/16/16
to Swagger
Thanks a lot for your update

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

Mauro Roberto

unread,
Nov 16, 2016, 11:25:39 AM11/16/16
to Swagger
Any plans to introduce it?

Ron Ratovsky

unread,
Nov 16, 2016, 11:28:52 AM11/16/16
to swagger-sw...@googlegroups.com

Yes, but I can’t give you an ETA.

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.

--

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.

Mauro Roberto

unread,
Nov 16, 2016, 11:46:03 AM11/16/16
to Swagger
Is there any ticket that I can use to track the status?

Regards

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@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+unsub...@googlegroups.com.

Ron Ratovsky

unread,
Nov 16, 2016, 11:55:07 AM11/16/16
to swagger-sw...@googlegroups.com

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.

--
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.

--
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.

Reply all
Reply to author
Forward
0 new messages