libertyandco
6 years agoNew Contributor
How to documente this array
Hi,
I'm writing my API documentation to swagger.io and I have a problem. I don't know how to documente my array in yaml.
My array (it's JSON) :
{ "quiz_id": "10", "api_ukey": "KYF210", "answers": { "24": [35,37] } }
Explication:
The array "answers" have 2 level :
- Level 1: key "24" : correspond to "question_id"
- Level 2: [35,37] : correspond to a list of answers
I hope you understood me.
Thank you for your help.
++