How can we know without seeing your code or generated spec?

 

 

 

From: <[email protected]> on behalf of smk 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Thursday, 11 August 2016 at 15:54
To: Swagger <[email protected]>
Subject: how can i display model/modelschema properly.?

 

Hi ,  

 

 

Currently this is what i am doing to display my json in the Model/Mode Schema 
on the swagger UI .

 

-> convert my json  to json schema

->use json schema to generate a pojo class

-> usiing @implicitparam(DataType="path/to/jar/that/has/the/.class" .. .. .. ) 
or using the response ="/path/to/.class "

 

 

but the json schema conversion is not accurate for array type where instead of 

[

{

}

]

 

UI displays 

{

}

 

moreover it doesnt show all the parameters in an arraytype when converted in to 
pojo.

 

 

My question is how would one display a model/model schema( i have attached a 
screenshot) on the swagger UI when i have the json request and response 
parameters of my api's . Is there a  better way of doing,

 

Im using Swagger + jersey2.

 

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.

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