Hi 

I am completely new to swagger and facing two issue with my swagger 
integration in to my project.

First let me explain what i am doing. I have my project annotated with 
swagger core  java annotations using along with Jersey 2 . after my initial 
set up swagger UI Displayed all the api which is really cool and awesome. 
My problem then was how to display response and request of my api. To solve 
this i have created a json schema and converted them to pojo class and 
using the annotation @ApiOperation-response parameter for GET and for POST 
i was able to display the model schema for the request using the same 
(schema ->pojo ->pointing using @implicit paramparam).(not sure if this the 
best way to show the response and request please let me know if there is 
another way.)

1-with above said, first problem i faced is i am unable to display the 
array type in my model schema or my response box in swagger UI. I have 
checked the schema it does follow the spec ( type : array). On UI i see the 
complete response but not as "[ ] "instaed in "{}".
is there any way i would be able to get the response complete as an array?

2-
"reports": [ { "id": "string", "commonFields": { "caption": "string", "
description": "string" }, "auditFields": { "createdTime": 
"2016-08-15T21:25:34.055Z", "modifiedTime": "2016-08-15T21:25:34.055Z", "
createdBy": "string", "modifiedBy": "string" }, ]

On the UI i want two objects in the arrays to be shown but UI displays just 
the reports[] nothing else. Is there something i am doing wrong and more 
over what is best way to show the request and response as model schema on 
the swagger UI. 

i am using swagger core- 1.5.0.
Please let me know if you need anymore details to help.

Thank you

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