{"action":"created","issue":{"url":"https://api.github.com/repos/stoicflame/enunciate/issues/281","labels_url":"https://api.github.com/repos/stoicflame/enunciate/issues/281/labels{/name}","comments_url":"https://api.github.com/repos/stoicflame/enunciate/issues/281/comments","events_url":"https://api.github.com/repos/stoicflame/enunciate/issues/281/events","html_url":"https://github.com/stoicflame/enunciate/issues/281","id":129156050,"number":281,"title":"Data Types are are generated without the description","user":{"login":"guyh-tointv","id":14040293,"avatar_url":"https://avatars.githubusercontent.com/u/14040293?v=3","gravatar_id":"","url":"https://api.github.com/users/guyh-tointv","html_url":"https://github.com/guyh-tointv","followers_url":"https://api.github.com/users/guyh-tointv/followers","following_url":"https://api.github.com/users/guyh-tointv/following{/other_user}","gists_url":"https://api.github.com/users/guyh-tointv/gists{/gist_id}","starred_url":"https://api.github.com/users/guyh-tointv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyh-tointv/subscriptions","organizations_url":"https://api.github.com/users/guyh-tointv/orgs","repos_url":"https://api.github.com/users/guyh-tointv/repos","events_url":"https://api.github.com/users/guyh-tointv/events{/privacy}","received_events_url":"https://api.github.com/users/guyh-tointv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stoicflame/enunciate/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/stoicflame/enunciate/labels/support","name":"support","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/stoicflame/enunciate/milestones/10","html_url":"https://github.com/stoicflame/enunciate/milestones/2.3.0","labels_url":"https://api.github.com/repos/stoicflame/enunciate/milestones/10/labels","id":1507423,"number":10,"title":"2.3.0","description":"","creator":{"login":"stoicflame","id":145838,"avatar_url":"https://avatars.githubusercontent.com/u/145838?v=3","gravatar_id":"","url":"https://api.github.com/users/stoicflame","html_url":"https://github.com/stoicflame","followers_url":"https://api.github.com/users/stoicflame/followers","following_url":"https://api.github.com/users/stoicflame/following{/other_user}","gists_url":"https://api.github.com/users/stoicflame/gists{/gist_id}","starred_url":"https://api.github.com/users/stoicflame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoicflame/subscriptions","organizations_url":"https://api.github.com/users/stoicflame/orgs","repos_url":"https://api.github.com/users/stoicflame/repos","events_url":"https://api.github.com/users/stoicflame/events{/privacy}","received_events_url":"https://api.github.com/users/stoicflame/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":5,"state":"open","created_at":"2016-01-14T18:04:11Z","updated_at":"2016-01-27T14:17:06Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-01-27T14:12:58Z","updated_at":"2016-01-27T17:39:16Z","closed_at":null,"body":"Hi,\r\n\r\nHere is an example of my PersonDTO class:\r\n````\r\nimport javax.xml.bind.annotation.XmlAccessType;\r\nimport javax.xml.bind.annotation.XmlAccessorType;\r\nimport javax.xml.bind.annotation.XmlElement;\r\nimport javax.xml.bind.annotation.XmlRootElement;\r\n\r\n/**\r\n * This represents a person\r\n * \r\n */\r\n@XmlRootElement(name=\"person\")\r\n@XmlAccessorType(XmlAccessType.PUBLIC_MEMBER)\r\npublic class PersonDTO {\r\n\t\r\n\t\r\n\t/**\r\n\t * First Name\r\n\t */\r\n\t@XmlElement(name=\"firstName\")\r\n\tprivate String _firstName;\r\n\t\r\n\t\r\n\t/**\r\n\t * Last Name\r\n\t */\r\n\t@XmlElement(name=\"lastName\")\r\n\tprivate String _lastName;\r\n\t\r\n\t/**\r\n\t * Email address\r\n\t */\r\n\t@XmlElement(name=\"email\")\r\n\tprivate String _email;\r\n\t\r\n\t\r\n\r\n\tpublic PersonDTO() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}\r\n\r\n\tpublic String getFirstName() {\r\n\t\treturn _firstName;\r\n\t}\r\n\r\n\tpublic void setFirstName(String firstName) {\r\n\t\tthis._firstName = firstName;\r\n\t}\r\n\r\n\tpublic String getLastName() {\r\n\t\treturn _lastName;\r\n\t}\r\n\r\n\tpublic void setLastName(String lastName) {\r\n\t\tthis._lastName = lastName;\r\n\t}\r\n\r\n\tpublic String getEmail() {\r\n\t\treturn _email;\r\n\t}\r\n\r\n\tpublic void setEmail(String email) {\r\n\t\tthis._email = email;\r\n\t}\t\r\n\r\n}\r\n````\r\n\r\nHere is the generated output:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/14040293/12615753/3c13c7a4-c510-11e5-9c75-ea6a0d052da2.png)\r\n\r\nAs you can see, each attribute appears twice, and the description is empty of both the attributes, and the class itself. What is going on here?\r\n\r\nHere is my enunciate.xml file:\r\n````\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<enunciate xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:noNamespaceSchemaLocation=\"http://enunciate.webcohesion.com/schemas/enunciate-1.27.xsd\">\r\n\r\n\t<facets>\r\n\t\t<exclude name=\"internal_api\" />\r\n\t</facets>\r\n\r\n\t<api-classes>\r\n\t\t<include pattern=\"com.company.media.facade.web.rest.*\" />\r\n\t\t<exclude pattern=\"org.jboss.**\" />\r\n\t\t<exclude pattern=\"org.springframework.**\" />\r\n\t\t<exclude pattern=\"com.jointv.media.facade.**\" />\r\n\t</api-classes>\r\n\r\n\r\n\t<modules>\r\n\t\t<docs docsDir=\"target/docs\" title=\"REST API\"/>\r\n\t\t<jackson disabled=\"true\"/>\r\n\t</modules>\r\n\r\n</enunciate>\r\n````"},"comment":{"url":"https://api.github.com/repos/stoicflame/enunciate/issues/comments/175763035","html_url":"https://github.com/stoicflame/enunciate/issues/281#issuecomment-175763035","issue_url":"https://api.github.com/repos/stoicflame/enunciate/issues/281","id":175763035,"user":{"login":"nfalco79","id":4160180,"avatar_url":"https://avatars.githubusercontent.com/u/4160180?v=3","gravatar_id":"","url":"https://api.github.com/users/nfalco79","html_url":"https://github.com/nfalco79","followers_url":"https://api.github.com/users/nfalco79/followers","following_url":"https://api.github.com/users/nfalco79/following{/other_user}","gists_url":"https://api.github.com/users/nfalco79/gists{/gist_id}","starred_url":"https://api.github.com/users/nfalco79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfalco79/subscriptions","organizations_url":"https://api.github.com/users/nfalco79/orgs","repos_url":"https://api.github.com/users/nfalco79/repos","events_url":"https://api.github.com/users/nfalco79/events{/privacy}","received_events_url":"https://api.github.com/users/nfalco79/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T17:39:16Z","updated_at":"2016-01-27T17:39:16Z","body":"Hi, are you sure the @XmlElement annotation is correct on the field?\r\nIn teory the default is on the getter/setter (you should annotate the getter methods).\r\nIf you want use @XmlElement on field you must annotate class with @XmlAccessorType(XmlAccessType.FIELD)"}}