{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2586","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2586/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2586/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2586/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2586","id":148094626,"number":2586,"title":"swagger generated names are different compared to name in class.","user":{"login":"kalkkhi","id":3363762,"avatar_url":"https://avatars.githubusercontent.com/u/3363762?v=3","gravatar_id":"","url":"https://api.github.com/users/kalkkhi","html_url":"https://github.com/kalkkhi","followers_url":"https://api.github.com/users/kalkkhi/followers","following_url":"https://api.github.com/users/kalkkhi/following{/other_user}","gists_url":"https://api.github.com/users/kalkkhi/gists{/gist_id}","starred_url":"https://api.github.com/users/kalkkhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalkkhi/subscriptions","organizations_url":"https://api.github.com/users/kalkkhi/orgs","repos_url":"https://api.github.com/users/kalkkhi/repos","events_url":"https://api.github.com/users/kalkkhi/events{/privacy}","received_events_url":"https://api.github.com/users/kalkkhi/received_events","type":"User","site_admin":false},"labels":[{"id":64180581,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Issue:%20Bug","name":"Issue: Bug","color":"e11d21","default":false},{"id":160482740,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Need%20community%20contribution","name":"Need community contribution","color":"e3ff00","default":false},{"id":207268290,"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Server:%20Java","name":"Server: Java","color":"f7c6c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/13","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/v2.2.2","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/13/labels","id":1928763,"number":13,"title":"v2.2.2","description":"","creator":{"login":"wing328","id":934260,"avatar_url":"https://avatars.githubusercontent.com/u/934260?v=3","gravatar_id":"","url":"https://api.github.com/users/wing328","html_url":"https://github.com/wing328","followers_url":"https://api.github.com/users/wing328/followers","following_url":"https://api.github.com/users/wing328/following{/other_user}","gists_url":"https://api.github.com/users/wing328/gists{/gist_id}","starred_url":"https://api.github.com/users/wing328/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wing328/subscriptions","organizations_url":"https://api.github.com/users/wing328/orgs","repos_url":"https://api.github.com/users/wing328/repos","events_url":"https://api.github.com/users/wing328/events{/privacy}","received_events_url":"https://api.github.com/users/wing328/received_events","type":"User","site_admin":false},"open_issues":286,"closed_issues":400,"state":"open","created_at":"2016-08-08T09:16:56Z","updated_at":"2016-11-11T15:51:15Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-04-13T15:16:39Z","updated_at":"2016-11-11T18:01:28Z","closed_at":null,"body":"Hi Swagger team,\n\nWe are working with Apache CXF framework and we used Swagger provided examples to generate swagger API specification. We use Apache CXF to expose soap and restful services together. We are generating our classes from an XSD. Field name tBr is generating successfully by CXF and working fine in restful service, but when spec is created by Swagger it is changing from tBr to tbr in swagger.json, second letter in field name changed from upper case to lower case. We would like to know the reason for this. We checked this behaviour on another field by making second letter into upper and there also Swagger changed it into lower case.\n\nSnippet of XSD used:\n                <xsd:element name=\"acctsFltr\" minOccurs=\"0\">\n                    xsd:complexType\n                        xsd:choice\n                            <xsd:element name=\"actNumber\" type=\"tns:AccountNumberType\" />\n                            <xsd:element name=\"tBr\" type=\"tns:BranchType\" />\n                            <xsd:element name=\"bch\" type=\"tns:BranchType\" />\n                        /xsd:choice\n                    /xsd:complexType\n                /xsd:element\n\nSnippet generated Java files\n\n  @Generated(value = \"com.sun.tools.xjc.Driver\", date = \"2016-04-13T10:25:39-04:00\", comments = \"JAXB RI v2.2.11\")\n  protected GetDetailsRequest.ActGrp actGrp;\n\n public static class ActGrp {\n\n```\n    @Generated(value = \"com.sun.tools.xjc.Driver\", date = \"2016-04-13T10:25:39-04:00\", comments = \"JAXB RI v2.2.11\")\n    protected String actNumber;\n    @Generated(value = \"com.sun.tools.xjc.Driver\", date = \"2016-04-13T10:25:39-04:00\", comments = \"JAXB RI v2.2.11\")\n    protected String tBr;\n    @Generated(value = \"com.sun.tools.xjc.Driver\", date = \"2016-04-13T10:25:39-04:00\", comments = \"JAXB RI v2.2.11\")\n    protected String bch;\n```\n\nThanks,\nAnoop\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/260016950","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2586#issuecomment-260016950","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2586","id":260016950,"user":{"login":"jfiala","id":4069646,"avatar_url":"https://avatars.githubusercontent.com/u/4069646?v=3","gravatar_id":"","url":"https://api.github.com/users/jfiala","html_url":"https://github.com/jfiala","followers_url":"https://api.github.com/users/jfiala/followers","following_url":"https://api.github.com/users/jfiala/following{/other_user}","gists_url":"https://api.github.com/users/jfiala/gists{/gist_id}","starred_url":"https://api.github.com/users/jfiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfiala/subscriptions","organizations_url":"https://api.github.com/users/jfiala/orgs","repos_url":"https://api.github.com/users/jfiala/repos","events_url":"https://api.github.com/users/jfiala/events{/privacy}","received_events_url":"https://api.github.com/users/jfiala/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T18:01:28Z","updated_at":"2016-11-11T18:01:28Z","body":"@kalkkhi Can you try this with the lastest master? If the error still occurs, please share the spec for easy reproduction."}}
{"actor":{"display_login":"jfiala"}}