{"action":"opened","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1641","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1641/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1641/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/1641/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/1641","id":119542909,"number":1641,"title":"Java codegen, when post a String parameter, unexpected quote in json","user":{"login":"wangzilong","id":4329939,"avatar_url":"https://avatars.githubusercontent.com/u/4329939?v=3","gravatar_id":"","url":"https://api.github.com/users/wangzilong","html_url":"https://github.com/wangzilong","followers_url":"https://api.github.com/users/wangzilong/followers","following_url":"https://api.github.com/users/wangzilong/following{/other_user}","gists_url":"https://api.github.com/users/wangzilong/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzilong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzilong/subscriptions","organizations_url":"https://api.github.com/users/wangzilong/orgs","repos_url":"https://api.github.com/users/wangzilong/repos","events_url":"https://api.github.com/users/wangzilong/events{/privacy}","received_events_url":"https://api.github.com/users/wangzilong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T17:41:11Z","updated_at":"2015-11-30T17:41:11Z","closed_at":null,"body":"My code : \r\n```java\r\n@Path(\"/{id}\")\r\n  @PUT\r\n  @Consumes({\"application/json\"})\r\n  @ApiOperation(value = \"Update Tab info\", notes = \"test\")\r\n  public Result put(@PathParam(\"id\")final String id, String tab) {\r\n    return super.put(id, tab);\r\n  }\r\n```\r\n\r\nswagger-spec\r\n```json\r\n\"put\": {\r\n                \"tags\": [\r\n                    \"tab\"\r\n                ],\r\n                \"summary\": \"Update Tab info\",\r\n                \"description\": \"If current user is owner, he can update all attribute. If current user is signer, he could only update data\",\r\n                \"operationId\": \"put\",\r\n                \"consumes\": [\r\n                    \"application/json\"\r\n                ],\r\n                \"produces\": [\r\n                    \"application/json\"\r\n                ],\r\n                \"parameters\": [\r\n                    {\r\n                        \"name\": \"id\",\r\n                        \"in\": \"path\",\r\n                        \"required\": true,\r\n                        \"type\": \"string\"\r\n                    },\r\n                    {\r\n                        \"in\": \"body\",\r\n                        \"name\": \"body\",\r\n                        \"required\": false,\r\n                        \"schema\": {\r\n                            \"type\": \"string\"\r\n                        }\r\n                    }\r\n                ],\r\n                \"responses\": {\r\n                    \"200\": {\r\n                        \"description\": \"successful operation\",\r\n                        \"schema\": {\r\n                            \"$ref\": \"#/definitions/Result\"\r\n                        }\r\n                    }\r\n```\r\n\r\ncodegen generate code:\r\n```java\r\n  public Result put(String id, String body) throws ApiException {\r\n    Call call = putCall(id,body, null, null);\r\n    Type returnType = new TypeToken<Result>(){}.getType();\r\n    return apiClient.execute(call, returnType);\r\n  }\r\n```\r\n\r\nWhen I use this method, I capture the package with wireshark\r\nscreenshot:\r\n![image](https://cloud.githubusercontent.com/assets/4329939/11479347/61db5bc8-9789-11e5-86ea-46642eedeee9.png)\r\n\r\n\r\n\r\nIf I use the swagger-ui to call this API, I capture the package with wireshark\r\nscreenshot:\r\n![image](https://cloud.githubusercontent.com/assets/4329939/11479351/68160f7e-9789-11e5-9ba4-68ff85918ea1.png)\r\n"}}