cancel
Showing results for 
Search instead for 
Did you mean: 

How to represent XML repeating tags in Swagger

Highlighted
Visitor

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?? 

New Here?
Join us and watch the welcome video:
Announcements