Forum Discussion

bbuzzard's avatar
bbuzzard
Occasional Contributor
5 years ago

How do you define XML elment with attribute and value like <Book id="1">Fundamentals of Music</Book>

I'm trying to define an XML element that looks like the following and I don't know how to do it.

 

<Book id="1">Fundamentals of Music</Book>

 

Can someone show me how to define this in Swagger2.0?