Re: Array of objects as an input parameter

2016-09-22 Thread Ron Ratovsky
ursday, 22 September 2016 at 8:17 To: Swagger Subject: Re: Array of objects as an input parameter Could you please show an example of what you're describing? Thanks On Wednesday, September 21, 2016 at 7:42:54 PM UTC-7, tony tam wrote: You don't want formData, you want an object, wit

Re: Array of objects as an input parameter

2016-09-22 Thread Mathieu Pheulpin
Could you please show an example of what you're describing? Thanks On Wednesday, September 21, 2016 at 7:42:54 PM UTC-7, tony tam wrote: > > You don't want formData, you want an object, with attribute "sources" > which is type "array". > > On Sep 21, 2016, at 6:50 PM, Mathieu Pheulpin > wrote:

Re: Array of objects as an input parameter

2016-09-21 Thread Tony Tam
You don't want formData, you want an object, with attribute "sources" which is type "array". > On Sep 21, 2016, at 6:50 PM, Mathieu Pheulpin wrote: > > I'm trying to describe the following post parameter in swagger: > > { > "sources": [ > { > "id": 101,

Array of objects as an input parameter

2016-09-21 Thread Mathieu Pheulpin
I'm trying to describe the following post parameter in swagger: { "sources": [ { "id": 101, "parentId": 201 },{ "id": 102, "parentId": 201 },{ "id": 102,