I am referring to the Draft 2.0 in example 9.5, listing 45
The property "arrayOutput" is defined as an array of integer.
However it is not defined the mediaType.
While in this specific case it is quite reasonable the output will be a JSON (e.g. [1,2,3]),
I wonder if this should be expected as the default, or if the contentMediaType should be added in the output description.
As an alternative the output of an array of numbers could be also returned as text/csv: 1,2,3
and in this case the description will have to include this information.
If the output description has in the schema description 'contentMediaType': 'text/csv',
should the client also be prepared to receive 'application/json' ?
I think that the above does not apply for inline input array, as input must be passed as JSON,
however it could be of interest where the input array is passed by reference.
I am referring to the Draft 2.0 in example 9.5, listing 45
The property "arrayOutput" is defined as an array of integer.
However it is not defined the
mediaType.While in this specific case it is quite reasonable the output will be a JSON (e.g.
[1,2,3]),I wonder if this should be expected as the default, or if the
contentMediaTypeshould be added in the output description.As an alternative the output of an array of numbers could be also returned as text/csv:
1,2,3and in this case the description will have to include this information.
If the output description has in the schema description
'contentMediaType': 'text/csv',should the client also be prepared to receive
'application/json'?I think that the above does not apply for
inline input array, as input must be passed as JSON,however it could be of interest where the input array is passed by reference.