Thanks. I didn't know about items: {}. Cheers,
On Tuesday, April 4, 2017 at 6:31:31 PM UTC-6, Ron wrote: > > The most you can do is describe an array of arbitrary values: > > > > type: array > > items: > > type: array > > items: {} > > > > > > > > *From: *<swagger-sw...@googlegroups.com <javascript:>> on behalf of > Matthew Boston <matthew...@gmail.com <javascript:>> > *Reply-To: *"swagger-sw...@googlegroups.com <javascript:>" < > swagger-sw...@googlegroups.com <javascript:>> > *Date: *Tuesday, 4 April 2017 at 16:46 > *To: *Swagger <swagger-sw...@googlegroups.com <javascript:>> > *Subject: *Two element array of mixed type > > > > How do I specify that an endpoint returns an array of two element arrays, > one value is a string, one value is a number? > > > > Like so: > > > > [["foo", 1], ["bar", 2], ["baz", 3]] > > > > Thanks! > > -- > 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+unsubscr...@googlegroups.com <javascript:>. > 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.