{"action":"closed","issue":{"url":"https://api.github.com/repos/spotify/docker-client/issues/831","repository_url":"https://api.github.com/repos/spotify/docker-client","labels_url":"https://api.github.com/repos/spotify/docker-client/issues/831/labels{/name}","comments_url":"https://api.github.com/repos/spotify/docker-client/issues/831/comments","events_url":"https://api.github.com/repos/spotify/docker-client/issues/831/events","html_url":"https://github.com/spotify/docker-client/issues/831","id":244102257,"number":831,"title":"Why do all model objects strictly enforce use of the Builder pattern to instantiate?","user":{"login":"LavieX","id":4700312,"avatar_url":"https://avatars0.githubusercontent.com/u/4700312?v=4","gravatar_id":"","url":"https://api.github.com/users/LavieX","html_url":"https://github.com/LavieX","followers_url":"https://api.github.com/users/LavieX/followers","following_url":"https://api.github.com/users/LavieX/following{/other_user}","gists_url":"https://api.github.com/users/LavieX/gists{/gist_id}","starred_url":"https://api.github.com/users/LavieX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LavieX/subscriptions","organizations_url":"https://api.github.com/users/LavieX/orgs","repos_url":"https://api.github.com/users/LavieX/repos","events_url":"https://api.github.com/users/LavieX/events{/privacy}","received_events_url":"https://api.github.com/users/LavieX/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-19T16:36:34Z","updated_at":"2017-07-19T18:25:16Z","closed_at":"2017-07-19T18:25:16Z","body":"I'm curious as to why this is strictly enforced.  The objects already have JSON annotations, which is great.  I'd like to be able to go both ways with JSON.  I'd like to be able to make the code below work without having to write a translation, but since the NetworkConfig only has a private constructor and no setters, Jackson doesn't know what to do.\r\n\r\nI'd be happy to make the PR with the changes to the model objects, but I have to think that with such strict enforcement of this pattern, there must be a good reason for it.  Please help me to understand it.\r\n\r\n```java\r\n@PostMapping(\"/\")\r\npublic @ResponseBody String createNetwork(@RequestBody NetworkConfig config) {\r\n    //do something with the config\r\n}\r\n```"}}
{"actor":{"display_login":"LavieX"}}