{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1901","labels_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1901/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1901/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1901/events","html_url":"https://github.com/swagger-api/swagger-ui/issues/1901","id":127949051,"number":1901,"title":"Body parameter content type xml does not handle nested definition correctly","user":{"login":"rick22sun","id":12987553,"avatar_url":"https://avatars.githubusercontent.com/u/12987553?v=3","gravatar_id":"","url":"https://api.github.com/users/rick22sun","html_url":"https://github.com/rick22sun","followers_url":"https://api.github.com/users/rick22sun/followers","following_url":"https://api.github.com/users/rick22sun/following{/other_user}","gists_url":"https://api.github.com/users/rick22sun/gists{/gist_id}","starred_url":"https://api.github.com/users/rick22sun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rick22sun/subscriptions","organizations_url":"https://api.github.com/users/rick22sun/orgs","repos_url":"https://api.github.com/users/rick22sun/repos","events_url":"https://api.github.com/users/rick22sun/events{/privacy}","received_events_url":"https://api.github.com/users/rick22sun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bodnia","id":8950657,"avatar_url":"https://avatars.githubusercontent.com/u/8950657?v=3","gravatar_id":"","url":"https://api.github.com/users/bodnia","html_url":"https://github.com/bodnia","followers_url":"https://api.github.com/users/bodnia/followers","following_url":"https://api.github.com/users/bodnia/following{/other_user}","gists_url":"https://api.github.com/users/bodnia/gists{/gist_id}","starred_url":"https://api.github.com/users/bodnia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodnia/subscriptions","organizations_url":"https://api.github.com/users/bodnia/orgs","repos_url":"https://api.github.com/users/bodnia/repos","events_url":"https://api.github.com/users/bodnia/events{/privacy}","received_events_url":"https://api.github.com/users/bodnia/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-01-21T15:25:52Z","updated_at":"2016-01-28T20:28:00Z","closed_at":null,"body":"When JSON body schema turns into XML, swagger-ui uses tag like \"inline_model_0\" as in this example: \r\n`<Model> <inline_model_0>` ... `</inline_model_0> </Model>` \r\nThis happens when definition has nested objects like:\r\n```\r\n  \"Model\": {\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n      \"group1\": {\r\n        \"type\": \"object\",\r\n        \"properties\": {\r\n          \"param\": {\r\n            \"type\": \"string\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n```\r\nFor this example, the nested object name \"group1\" should be used, rather than \"inline_model_0\". \r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/comments/176397025","html_url":"https://github.com/swagger-api/swagger-ui/issues/1901#issuecomment-176397025","issue_url":"https://api.github.com/repos/swagger-api/swagger-ui/issues/1901","id":176397025,"user":{"login":"bodnia","id":8950657,"avatar_url":"https://avatars.githubusercontent.com/u/8950657?v=3","gravatar_id":"","url":"https://api.github.com/users/bodnia","html_url":"https://github.com/bodnia","followers_url":"https://api.github.com/users/bodnia/followers","following_url":"https://api.github.com/users/bodnia/following{/other_user}","gists_url":"https://api.github.com/users/bodnia/gists{/gist_id}","starred_url":"https://api.github.com/users/bodnia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodnia/subscriptions","organizations_url":"https://api.github.com/users/bodnia/orgs","repos_url":"https://api.github.com/users/bodnia/repos","events_url":"https://api.github.com/users/bodnia/events{/privacy}","received_events_url":"https://api.github.com/users/bodnia/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T20:27:59Z","updated_at":"2016-01-28T20:27:59Z","body":"@rick22sun If you would like to rename the model, you may add xml.name property to it, please see the example below\r\n```javascript\r\n  \"Model\": {\r\n    \"type\": \"object\",\r\n    \"properties\": {\r\n      \"group1\": {\r\n        \"type\": \"object\",\r\n        \"properties\": {\r\n          \"param\": {\r\n            \"type\": \"string\"\r\n          }\r\n        }\r\n      }\r\n    },\r\n  \"xml\": {\r\n    \"name\": \"input\"\r\n   }\r\n  }\r\n```\r\n\r\n[Here](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#xml-object) is more information about xml object.\r\n\r\n> Is it possible to exclude the first line <?xml version=\"1.0\"?> from the result?\r\n@webron what do you think about this?"}}