Forum Discussion

RohanKanhai's avatar
5 years ago

How to represent XML repeating tags in Swagger

I have a simple question. 

 

We have a web service which brings (response) a XML which has repeating tags.  Our XML is simplified below.

 

<response>

    <Product><code>C</code> <description>car</description> </Product>   

    <Product><code>b</code> <description>bike</description> </Product>   

    <Product><code>t</code> <description>tractor</description> </Product>   

</response>

 

Response tag can have any number of Product tags under it.

 

When creating a swagger defintion for the response section how do we represent this repeating nature of the Product tag??

Is it necessary to do so?? 

No RepliesBe the first to reply