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

 

 

 

From: <[email protected]> on behalf of Mauro Roberto 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Wednesday, 16 November 2016 at 3:25
To: Swagger <[email protected]>
Subject: Swagger UI - hashmap not rendering in response model

 

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

-- 
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 [email protected].
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to