Forum Discussion

mehhfooz's avatar
mehhfooz
Occasional Visitor
6 years ago

associative array

Hi, I am new to swagger, I want to know if it is possible to add datatype like an associative array

for an example in a post request body.

{
  "data": [
    {
      "question_id": 0,
      "answer": "string"
    },
    {
      "question_id": 0,
      "answer": "string"
    },
    {
      "question_id": 0,
      "answer": "string"
    },
    {
      "question_id": 0,
      "answer": "string"
    },
    {
      "question_id": 0,
      "answer": "string"
    }
  ]
}

 

thanks in advance

No RepliesBe the first to reply