Hi Group,
I'm working on modeling an existing API at my company.
A long time ago, the decision was made to provide a JSON response similar to the following:
{
"a": true,
"b": "",
"c": 0,
"userid": "d012345234",
"timestamp": 1452481936,
"request": "store-data-in-cloud",
"datatype": "json",
"data": []
}
I can't figure out how to model the "data" array in the Swagger Editor.
The closest I've come is:
data:
type: array
description: lorem
items:
type: object
minimum: 0
maximum: 0
Which of course results in:
{
"a": true,
"b": "string",
"c": 0,
"userid": "string",
"timestamp": 0,
"request": "string",
"datatype": "string",
"data": [
{}
]
}
Am I trying to do something that's not currently possible?