{"action":"created","issue":{"url":"https://api.github.com/repos/springfox/springfox/issues/653","labels_url":"https://api.github.com/repos/springfox/springfox/issues/653/labels{/name}","comments_url":"https://api.github.com/repos/springfox/springfox/issues/653/comments","events_url":"https://api.github.com/repos/springfox/springfox/issues/653/events","html_url":"https://github.com/springfox/springfox/issues/653","id":67067428,"number":653,"title":"empty properties in model where @JsonProperty exists in @JsonCreator static factory method.","user":{"login":"masonhsiung","id":2654007,"avatar_url":"https://avatars.githubusercontent.com/u/2654007?v=3","gravatar_id":"","url":"https://api.github.com/users/masonhsiung","html_url":"https://github.com/masonhsiung","followers_url":"https://api.github.com/users/masonhsiung/followers","following_url":"https://api.github.com/users/masonhsiung/following{/other_user}","gists_url":"https://api.github.com/users/masonhsiung/gists{/gist_id}","starred_url":"https://api.github.com/users/masonhsiung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masonhsiung/subscriptions","organizations_url":"https://api.github.com/users/masonhsiung/orgs","repos_url":"https://api.github.com/users/masonhsiung/repos","events_url":"https://api.github.com/users/masonhsiung/events{/privacy}","received_events_url":"https://api.github.com/users/masonhsiung/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springfox/springfox/labels/investigating","name":"investigating","color":"fad8c7"}],"state":"closed","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":7,"closed_issues":31,"state":"open","created_at":"2014-11-16T05:56:09Z","updated_at":"2015-04-10T21:09:43Z","due_on":"2015-03-01T06:00:00Z","closed_at":null},"comments":1,"created_at":"2015-04-08T07:26:20Z","updated_at":"2015-04-10T21:10:45Z","closed_at":"2015-04-10T21:09:43Z","body":"As described in #586, after more tests(tested on 1.0.2 release), I found this only occurs on the static factory @JsonCreator method.\r\n\r\nFor example, this is my API contorller method.\r\n```java\r\n@RequestMapping(value = \"/test-api\", method = RequestMethod.POST)\r\npublic TestDto testApi(@RequestBody TestApiRequest request){\r\n   ...\r\n}\r\n```\r\n\r\nAnd here is the class definition of TestApiRequest\r\n```java\r\npackage com.kkbox.espresso.model.account;\r\n\r\nimport com.fasterxml.jackson.annotation.JsonCreator;\r\nimport com.fasterxml.jackson.annotation.JsonProperty;\r\n\r\nimport javax.annotation.Nullable;\r\n\r\npublic class TestApiRequest{\r\n\r\n  private String name;\r\n  private String email;\r\n\r\n  public TestApiRequest(String name,String email){\r\n    this.name = name;\r\n    this.email = email;\r\n  }\r\n\r\n  @JsonCreator\r\n  public static TestApiRequest create(@JsonProperty(\"name\") String name, @JsonProperty(\"email\") String email){\r\n    return new TestApiRequest(name, email);\r\n  }\r\n\r\n  @JsonProperty\r\n  @Nullable\r\n  public String getName(){\r\n    return this.name;\r\n  };\r\n\r\n  @JsonProperty\r\n  @Nullable\r\n  public String getEmail() {\r\n    return this.email;\r\n  }\r\n}\r\n```\r\nNote that the \"create\" static factory method, putting @JsonPropery annotation onto the parameters causes this empty model properties.\r\n"},"comment":{"url":"https://api.github.com/repos/springfox/springfox/issues/comments/91692427","html_url":"https://github.com/springfox/springfox/issues/653#issuecomment-91692427","issue_url":"https://api.github.com/repos/springfox/springfox/issues/653","id":91692427,"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-10T21:10:45Z","updated_at":"2015-04-10T21:10:45Z","body":"@masonhsiung unfortunately if its not working in 1.0.2 we're not going to fix it unless it is critical (which this is not). This issue has been fixed in 2.0"}}