I’m afraid you’re out of luck. The array values need to be homogenous. 

 

 

 

From: <[email protected]> on behalf of umuk 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Tuesday, 30 May 2017 at 7:34
To: Swagger <[email protected]>
Subject: possible to specify an API response array (used as an ordered pair)?

 

I have a need to document an API via Swagger. The api response has 2 element 
arrays like this:

[ [RFC3339 timestamp, float64 value], ...]

 

I am not sure how to define the ordered pair (which we use a 2 element array 
for). 

That is "[ RFC3339 timestamp, float64 value ]"

 

Does anyone have any suggestions? 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.

Reply via email to