{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/1073","labels_url":"https://api.github.com/repos/springfox/springfox/issues/1073/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/1073/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/1073/events","html_url":"https://github.com/springfox/springfox/issues/1073","id":119346065,"number":1073,"title":"About single parameter in application/json request case","user":{"login":"zhugw","id":4953871,"avatar_url":"https://avatars.githubusercontent.com/u/4953871?v=3","gravatar_id":"","url":"https://api.github.com/users/zhugw","html_url":"https://github.com/zhugw","followers_url":"https://api.github.com/users/zhugw/followers","following_url":"https://api.github.com/users/zhugw/following{/other_user}","gists_url":"https://api.github.com/users/zhugw/gists{/gist_id}","starred_url":"https://api.github.com/users/zhugw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhugw/subscriptions","organizations_url":"https://api.github.com/users/zhugw/orgs","repos_url":"https://api.github.com/users/zhugw/repos","events_url":"https://api.github.com/users/zhugw/events{/privacy}","received_events_url":"https://api.github.com/users/zhugw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/question","name":"question","color":"006b75"},{"url":"https://api.github.com/repos/springfox/springfox/labels/waiting-for-more-info","name":"waiting-for-more-info","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/springfox/springfox/milestones/35","html_url":"https://github.com/springfox/springfox/milestones/2.4.0","labels_url":"https://api.github.com/repos/springfox/springfox/milestones/35/labels","id":1277614,"number":35,"title":"2.4.0","description":"","creator":{"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},"open_issues":38,"closed_issues":8,"state":"open","created_at":"2015-08-28T14:23:58Z","updated_at":"2016-01-03T01:55:53Z","due_on":"2016-03-01T06:00:00Z","closed_at":null},"comments":3,"created_at":"2015-11-29T08:16:12Z","updated_at":"2016-01-03T01:59:48Z","closed_at":null,"body":"Does exist more elegant manner to process single parameter in swagger ui? \r\nBackground: front-end want all post/put request consistently use application/json to commit data, so if one Api only need single parameter, e.g. \r\n```\r\npublic Result<?> cancelOrder(\r\n      @ApiParam(value = \"Order ID\", required = true) @PathVariable long orderId,\r\n      @ApiParam(value = \"User ID\", required = true) @RequestBody int userId) \r\n```\r\nin this case the ui effect is\r\n![screenshot from 2015-11-29 16 01 23](https://cloud.githubusercontent.com/assets/4953871/11456029/cfa08696-96b3-11e5-9ea6-7c4a6c224ce9.png)\r\nbut I want this effect\r\n![screenshot from 2015-11-29 16 12 04](https://cloud.githubusercontent.com/assets/4953871/11456031/f9042f4c-96b3-11e5-82ff-37eb87b96456.png)\r\nI feel this effect is more clear to front-end user. So I have to create a special DTO Object , \r\n```\r\n @Data\r\n  static class OrderCancelForm {\r\n    int userId;\r\n  }\r\n```\r\nOf course I could create some common DTO Object for single parameter or two parameters, e.g.\r\n```\r\nclass CommonSingleValueForm{\r\n    Object value;\r\n}\r\n```\r\nbut I want know if exist some more convenience and elegant manner for this requirement?"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/168449812","html_url":"https://github.com/springfox/springfox/issues/1073#issuecomment-168449812","issue_url":"https://api.github.com/repos/springfox/springfox/issues/1073","id":168449812,"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":"2016-01-03T01:59:48Z","updated_at":"2016-01-03T01:59:48Z","body":"@zhugw Is this problem fixed in 2.3.0. Not able to reproduce this issue\r\n"}}