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>

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 Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.
New Here?
Join us and watch the welcome video: