The most you can do is describe an array of arbitrary values:
type: array
items:
type: array
items: {}
From: <[email protected]> on behalf of Matthew Boston
<[email protected]>
Reply-To: "[email protected]"
<[email protected]>
Date: Tuesday, 4 April 2017 at 16:46
To: Swagger <[email protected]>
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 [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.