cancel
Showing results for 
Search instead for 
Did you mean: 

associative array

Highlighted
Occasional Visitor

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

New Here?
Join us and watch the welcome video:
Watch the new interview
Top Kudoed Authors