{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/671","labels_url":"https://api.github.com/repos/springfox/springfox/issues/671/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/671/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/671/events","html_url":"https://github.com/springfox/springfox/issues/671","id":68160213,"number":671,"title":"@RequestBody is creating parameters named \"body\", and cannot be over-ridden","user":{"login":"who","id":282534,"avatar_url":"https://avatars.githubusercontent.com/u/282534?v=3","gravatar_id":"","url":"https://api.github.com/users/who","html_url":"https://github.com/who","followers_url":"https://api.github.com/users/who/followers","following_url":"https://api.github.com/users/who/following{/other_user}","gists_url":"https://api.github.com/users/who/gists{/gist_id}","starred_url":"https://api.github.com/users/who/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/who/subscriptions","organizations_url":"https://api.github.com/users/who/orgs","repos_url":"https://api.github.com/users/who/repos","events_url":"https://api.github.com/users/who/events{/privacy}","received_events_url":"https://api.github.com/users/who/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/feature","name":"feature","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/18","html_url":"https://github.com/springfox/springfox/milestones/2.0","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/18/labels","id":868072,"number":18,"title":"2.0","description":"RC1 Release of 2.0","creator":{"login":"adrianbk","id":1910629,"avatar_url":"https://avatars.githubusercontent.com/u/1910629?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianbk","html_url":"https://github.com/adrianbk","followers_url":"https://api.github.com/users/adrianbk/followers","following_url":"https://api.github.com/users/adrianbk/following{/other_user}","gists_url":"https://api.github.com/users/adrianbk/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianbk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianbk/subscriptions","organizations_url":"https://api.github.com/users/adrianbk/orgs","repos_url":"https://api.github.com/users/adrianbk/repos","events_url":"https://api.github.com/users/adrianbk/events{/privacy}","received_events_url":"https://api.github.com/users/adrianbk/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":34,"state":"open","created_at":"2014-11-16T05:56:09Z","updated_at":"2015-04-14T00:23:30Z","due_on":"2015-03-01T06:00:00Z","closed_at":null},"comments":11,"created_at":"2015-04-13T18:16:51Z","updated_at":"2015-04-14T03:41:02Z","closed_at":null,"body":"When using `@RequestBody` annotation on an object, the `name` attribute of the `@ApiParam` annotation is ignored, and instead \"body\" is used.\r\n\r\nHere's my repro:\r\n\r\nThis source:\r\n\r\n```\r\n    @RequestMapping(\r\n        value = \"/books\", \r\n        method = RequestMethod.POST, \r\n        consumes = MediaType.APPLICATION_JSON_VALUE,       \r\n        produces = MediaType.APPLICATION_JSON_VALUE)\r\n    @ApiOperation(\r\n        value = \"Create a book\",\r\n        notes = \"Creates a book so that it can be managed by this api.\",\r\n        response = Book.class,\r\n        authorizations = @Authorization(value = \"basicAuth\", type = \"basicAuth\")\r\n    )\r\n    @ApiImplicitParams(@ApiImplicitParam(name=\"custom-auth-header\", value=\"\",required=false,dataType = \"string\", paramType = \"header\"))\r\n    public Book createBook(\r\n        @ApiParam(value = \"Book object\", required = true, name = \"book\") @RequestBody @Valid Book book) {\r\n        return bookService.createBook(book);\r\n    }\r\n```\r\n\r\nYields this output:\r\n\r\n```\r\n{\r\n  ...\r\n  \"paths\": {\r\n    \"/books\": {\r\n      \"post\": {\r\n        \"summary\": \"Creates a book\",\r\n        \"description\": \"Creates a book so that it can be managed by this api.\",\r\n        \"schemes\": [],\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            \"in\": \"body\",\r\n            \"name\": \"body\",\r\n            \"description\": \"Book object\",\r\n            \"required\": true,\r\n            \"schema\": {\r\n              \"$ref\": \"#/definitions/Book\"\r\n            }\r\n          },\r\n          {\r\n            \"name\": \"custom-auth-header\",\r\n            \"in\": \"header\",\r\n            \"required\": false,\r\n            \"type\": \"string\"\r\n          }\r\n        ],\r\n        \"responses\": {\r\n          \"404\": {\r\n            \"description\": \"Not Found\",\r\n            \"examples\": {},\r\n            \"headers\": {}\r\n          },\r\n          \"200\": {\r\n            \"description\": \"OK\",\r\n            \"schema\": {\r\n              \"$ref\": \"#/definitions/Book\"\r\n            },\r\n            \"examples\": {},\r\n            \"headers\": {}\r\n          },\r\n          \"201\": {\r\n            \"description\": \"Created\",\r\n            \"examples\": {},\r\n            \"headers\": {}\r\n          },\r\n          \"401\": {\r\n            \"description\": \"Unauthorized\",\r\n            \"examples\": {},\r\n            \"headers\": {}\r\n          },\r\n          \"403\": {\r\n            \"description\": \"Forbidden\",\r\n            \"examples\": {},\r\n            \"headers\": {}\r\n          }\r\n        },\r\n        \"security\": [\r\n          {\r\n            \"basicAuth\": []\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  }\r\n  ...\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/92589390","html_url":"https://github.com/springfox/springfox/issues/671#issuecomment-92589390","issue_url":"https://api.github.com/repos/springfox/springfox/issues/671","id":92589390,"user":{"login":"dilipkrish","id":73257,"avatar_url":"https://avatars.githubusercontent.com/u/73257?v=3","gravatar_id":"","url":"https://api.github.com/users/dilipkrish","html_url":"https://github.com/dilipkrish","followers_url":"https://api.github.com/users/dilipkrish/followers","following_url":"https://api.github.com/users/dilipkrish/following{/other_user}","gists_url":"https://api.github.com/users/dilipkrish/gists{/gist_id}","starred_url":"https://api.github.com/users/dilipkrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dilipkrish/subscriptions","organizations_url":"https://api.github.com/users/dilipkrish/orgs","repos_url":"https://api.github.com/users/dilipkrish/repos","events_url":"https://api.github.com/users/dilipkrish/events{/privacy}","received_events_url":"https://api.github.com/users/dilipkrish/received_events","type":"User","site_admin":false},"created_at":"2015-04-14T03:41:02Z","updated_at":"2015-04-14T03:41:02Z","body":"I started out an initial work on this. Unfortunately that exposed a gaping whole in the test coverage for the swagger 2 mappers. "}}