ContributionsMost RecentMost LikesSolutionsWhat's the correct way to define an XML Collection containing an XML Element? I'm using Swagger2.0 and I'm trying to define the following: <root> <LREFERENCES> <LREFERENCE QUAL="A"> <VALUE>100</VALUE> </LREFERENCE> </LREFERENCES> </root> I tried this: ... LREFERENCES: type: array items: type: object properties: LREFENCE: type: object properties: QUAL: type: string xml: attribute: true VALUE: type: string But during testing the inner LSERVICE is not instantiated. What am I doing wrong? Why does the "Chat with Support" button in SwaggerUI not work? I'm trying to contact SwaggerUI spport to get an answer to a problem I'm having, but when I click the "Chat with Support" button in the UI nothing happens. Why? 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? Re: How do I assign a label to the json object that is returned like "Test" in Test: { name: test1 } Actually that's what I think I want. How would you define that within the Swagger 2.0 components? How do I assign a label to the json object that is returned like "Test" in Test: { name: test1 } I have a customer who is expecting the json objects in the response to contain a label like the following: Test: { name: test1 passed: false } I'm using Swagger 2.0. How do I assign "Test" to the object in the yaml file?