{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2189","repository_url":"https://api.github.com/repos/swagger-api/swagger-codegen","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2189/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2189/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2189/events","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2189","id":134899619,"number":2189,"title":"readOnly field shouldn't have a set property with Java CodeGen","user":{"login":"SolaceMike","id":17340097,"avatar_url":"https://avatars.githubusercontent.com/u/17340097?v=3","gravatar_id":"","url":"https://api.github.com/users/SolaceMike","html_url":"https://github.com/SolaceMike","followers_url":"https://api.github.com/users/SolaceMike/followers","following_url":"https://api.github.com/users/SolaceMike/following{/other_user}","gists_url":"https://api.github.com/users/SolaceMike/gists{/gist_id}","starred_url":"https://api.github.com/users/SolaceMike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolaceMike/subscriptions","organizations_url":"https://api.github.com/users/SolaceMike/orgs","repos_url":"https://api.github.com/users/SolaceMike/repos","events_url":"https://api.github.com/users/SolaceMike/events{/privacy}","received_events_url":"https://api.github.com/users/SolaceMike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/labels/Enhancement:%20General","name":"Enhancement: General","color":"e5ffe5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/5","html_url":"https://github.com/swagger-api/swagger-codegen/milestones/Future","labels_url":"https://api.github.com/repos/swagger-api/swagger-codegen/milestones/5/labels","id":913962,"number":5,"title":"Future","description":"","creator":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"open_issues":144,"closed_issues":64,"state":"open","created_at":"2014-12-24T05:48:44Z","updated_at":"2016-10-18T15:47:29Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-02-19T15:56:02Z","updated_at":"2016-10-20T19:52:24Z","closed_at":null,"body":"If you have a field marked as readOnly in your schema, the Java code generator still renders a set Method. For example: \r\n\"uri\": {\r\n   \"description\": \"URI of the object\",\r\n    \"type\": \"string\",\r\n    \"readOnly\": true\r\n}\r\n\r\nAnd the generator gives me:\r\n@ApiModelProperty(value = \"URI of the object\")\r\n  @JsonProperty(\"uri\")\r\n  public String getUri() {\r\n    return uri;\r\n  }\r\n  public void setUri(String uri) {\r\n    this.uri = uri;\r\n  }\r\n\r\nA read only field should not be settable.\r\n\r\nThis is using the Swagger Editor Version 2.9.8 online at http://editor.swagger.io/#/\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/comments/255210032","html_url":"https://github.com/swagger-api/swagger-codegen/issues/2189#issuecomment-255210032","issue_url":"https://api.github.com/repos/swagger-api/swagger-codegen/issues/2189","id":255210032,"user":{"login":"rajeshkamal","id":11532743,"avatar_url":"https://avatars.githubusercontent.com/u/11532743?v=3","gravatar_id":"","url":"https://api.github.com/users/rajeshkamal","html_url":"https://github.com/rajeshkamal","followers_url":"https://api.github.com/users/rajeshkamal/followers","following_url":"https://api.github.com/users/rajeshkamal/following{/other_user}","gists_url":"https://api.github.com/users/rajeshkamal/gists{/gist_id}","starred_url":"https://api.github.com/users/rajeshkamal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajeshkamal/subscriptions","organizations_url":"https://api.github.com/users/rajeshkamal/orgs","repos_url":"https://api.github.com/users/rajeshkamal/repos","events_url":"https://api.github.com/users/rajeshkamal/events{/privacy}","received_events_url":"https://api.github.com/users/rajeshkamal/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T19:52:24Z","updated_at":"2016-10-20T19:52:24Z","body":"Spring Server Side Code Generation - BROKEN.\r\n\r\nLooks like this change - https://github.com/swagger-api/swagger-codegen/pull/2206 seems to have broken backward compatibility and the setter methods in Java POJO's are not getting generated for spring server code generation.\r\n\r\nI did already log a bug on this one - https://github.com/swagger-api/swagger-codegen/issues/3793 din't hear from anyone though.\r\n\r\nAny inputs?"}}
{"actor":{"display_login":"rajeshkamal"}}