Writing array nodes in swagger editor

17 views
Skip to first unread message

A One

unread,
Jun 27, 2017, 2:15:09 PM6/27/17
to Swagger
Hello here is what am trying to achieve

{
   
"getServiceTemplateThingsResponse":{
     
"requestId":"",
     
"partner_id":"",
     
"customer_id":"0000",
     
"result_code":"",
     
"result_description":"",
     
"response":[
         
{
           
"udid":"",
           
"imsi":"",
           
"iccid":"",
           
"euiccid":"",
           
"ip":"",
           
"state":""
         
},
         
{
           
"udid":"",
           
"imsi":"",
           
"iccid":"",
           
"euiccid":"",
           
"ip":"",
           
"state":""
         
},    
]
   
}
}

But here is what am able to do so far on swagger editor, please help me out


{
   
"getServiceTemplateThingsResponse":{
     
"requestId":"",
     
"partner_id":"",
     
"customer_id":"0000",
     
"result_code":"",
     
"result_description":"",
     
"response":[
         
{
           
"udid":"",
           
"imsi":"",
           
"iccid":"",
           
"euiccid":"",
           
"ip":"",
           
"state":""
         
}
     
]
   
}
}


Ron Ratovsky

unread,
Jun 27, 2017, 2:19:24 PM6/27/17
to swagger-sw...@googlegroups.com

What’s the difference?

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

A One

unread,
Jun 27, 2017, 2:23:01 PM6/27/17
to Swagger
I can't figure out how to write the first one in YAML, exactly the point i start adding multiple nodes adding to respones

Ron Ratovsky

unread,
Jun 27, 2017, 2:25:21 PM6/27/17
to swagger-sw...@googlegroups.com

What’s generated by the editor is an example – it will show only one item.

--

A One

unread,
Jun 27, 2017, 2:34:12 PM6/27/17
to swagger-sw...@googlegroups.com
I see, but is there anyway to achieve the same example though is not
necessary, am just curious that's all
> You received this message because you are subscribed to a topic in the
> Google Groups "Swagger" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/swagger-swaggersocket/eiGj_seX9yw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
Reply all
Reply to author
Forward
0 new messages