{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1291","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1291/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1291/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1291/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1291","id":108099155,"number":1291,"title":"Inconsistent parameter names","user":{"login":"msh321","id":1345452,"avatar_url":"https://avatars.githubusercontent.com/u/1345452?v=3","gravatar_id":"","url":"https://api.github.com/users/msh321","html_url":"https://github.com/msh321","followers_url":"https://api.github.com/users/msh321/followers","following_url":"https://api.github.com/users/msh321/following{/other_user}","gists_url":"https://api.github.com/users/msh321/gists{/gist_id}","starred_url":"https://api.github.com/users/msh321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msh321/subscriptions","organizations_url":"https://api.github.com/users/msh321/orgs","repos_url":"https://api.github.com/users/msh321/repos","events_url":"https://api.github.com/users/msh321/events{/privacy}","received_events_url":"https://api.github.com/users/msh321/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-24T10:05:03Z","updated_at":"2015-09-30T09:26:24Z","closed_at":null,"body":"I have the following Swagger Specification:\r\n```yaml\r\nswagger: '2.0'\r\ninfo:\r\n  description: TODO\r\n  version: 0.0.2\r\n  title: TODO\r\n  termsOfService: TODO\r\nhost: 10.11.12.13:8080\r\nbasePath: /v7\r\nschemes:\r\n  - http\r\n  - https\r\npaths:\r\n# ==============================================================================\r\n# == Asynchronous REST operations (create, delete, modify, recreate service)\r\n# ==============================================================================\r\n  /abc/serv:\r\n    get:\r\n      tags:\r\n        - serv\r\n      summary: TODO\r\n      description: 'TODO'\r\n      operationId: getServ\r\n      consumes:\r\n        - application/json\r\n        - application/xml\r\n      produces:\r\n        - application/json\r\n        - application/xml\r\n      parameters:\r\n        - in: header\r\n          name: X-Token\r\n          description: TODO\r\n          required: true\r\n          type: string\r\n        - in: header\r\n          name: Callback\r\n          description: TODO\r\n          required: true\r\n          type: string\r\n        - in: query\r\n          name: id\r\n          description: TODO\r\n          required: true\r\n          type: boolean\r\n      responses:\r\n        '200':\r\n          description: Request was accepted\r\n```\r\nHere is the documentation from the Swagger Editor:\r\n\r\n![img1](https://cloud.githubusercontent.com/assets/1345452/10070580/adfa37a0-62b3-11e5-8b88-a98c4770cc58.png)\r\n\r\nAnd this is what I get when using `codegen` (language:`dynamic-html`):\r\n\r\n![img2](https://cloud.githubusercontent.com/assets/1345452/10070587/b40a10c0-62b3-11e5-9dfd-eec2d97ab1fb.png)\r\n\r\nNotice that `X-Token` has been renamed to `xToken` and `Callback` to `callback`.\r\n\r\nI need to align with an existing API, so I cannot change the parameter names.\r\n\r\nBTW: The use of the `Callback` parameter leads to another problem; namely that the generated Java files cannot compile (because `callback` is used for other purposes in the auto-generated code). I just made a posting on the forum to see if there is a way to work around this \"name collision issue\".\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/144337045","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1291#issuecomment-144337045","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1291","id":144337045,"user":{"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},"created_at":"2015-09-30T09:26:24Z","updated_at":"2015-09-30T09:26:24Z","body":"@msh321 I've fixed the parameter name in #1310. Please do a test and let me know if you still experience the issue. "}}