cancel
Showing results for 
Search instead for 
Did you mean: 

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

Highlighted
Occasional Contributor

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?

 

1 REPLY 1
Highlighted
Moderator

Re: How do you define XML elment with attribute and value like <Book id="1">Fundamen

Hi bbuzzard,

 

Currently there is no way to represent this. Please see this thread for details:
https://community.smartbear.com/t5/SwaggerHub/Swagger-Definition-object-default-value/m-p/176972/hig...


Helen Kosova
SmartBear Documentation Team Lead
________________________
Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements