{"action":"created","issue":{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/382","labels_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/382/labels{/name}","comments_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/382/comments","events_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/382/events","html_url":"https://github.com/joelittlejohn/jsonschema2pojo/issues/382","id":92205934,"number":382,"title":"Support getting/setting properties by name","user":{"login":"ctrimble","id":614753,"avatar_url":"https://avatars.githubusercontent.com/u/614753?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrimble","html_url":"https://github.com/ctrimble","followers_url":"https://api.github.com/users/ctrimble/followers","following_url":"https://api.github.com/users/ctrimble/following{/other_user}","gists_url":"https://api.github.com/users/ctrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrimble/subscriptions","organizations_url":"https://api.github.com/users/ctrimble/orgs","repos_url":"https://api.github.com/users/ctrimble/repos","events_url":"https://api.github.com/users/ctrimble/events{/privacy}","received_events_url":"https://api.github.com/users/ctrimble/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"ctrimble","id":614753,"avatar_url":"https://avatars.githubusercontent.com/u/614753?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrimble","html_url":"https://github.com/ctrimble","followers_url":"https://api.github.com/users/ctrimble/followers","following_url":"https://api.github.com/users/ctrimble/following{/other_user}","gists_url":"https://api.github.com/users/ctrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrimble/subscriptions","organizations_url":"https://api.github.com/users/ctrimble/orgs","repos_url":"https://api.github.com/users/ctrimble/repos","events_url":"https://api.github.com/users/ctrimble/events{/privacy}","received_events_url":"https://api.github.com/users/ctrimble/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-06-30T21:29:56Z","updated_at":"2015-12-20T05:29:21Z","closed_at":"2015-12-20T05:29:21Z","body":"As the types I am working with evolve, new properties are being introduced which leads to code like this:\r\n\r\n```\r\nobject.getAdditionalProperties().get(\"newProperty\");\r\n```\r\n\r\nUnfortunately, this code will now break if `newProperty` is actually defined in the schema, since the values will start ending up in the object field, instead of the additionalProperties map.  I am wondering some methods like this would help this situation:\r\n\r\n```\r\nobject.get$(\"newProperty\")\r\nobject.set$(\"newProperty\", \"value\")\r\n```\r\n\r\nWhere the implementation would first look for the property in a field and then go to the additional properties map.\r\n\r\n@joelittlejohn thoughts?"},"comment":{"url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/comments/166068539","html_url":"https://github.com/joelittlejohn/jsonschema2pojo/issues/382#issuecomment-166068539","issue_url":"https://api.github.com/repos/joelittlejohn/jsonschema2pojo/issues/382","id":166068539,"user":{"login":"ctrimble","id":614753,"avatar_url":"https://avatars.githubusercontent.com/u/614753?v=3","gravatar_id":"","url":"https://api.github.com/users/ctrimble","html_url":"https://github.com/ctrimble","followers_url":"https://api.github.com/users/ctrimble/followers","following_url":"https://api.github.com/users/ctrimble/following{/other_user}","gists_url":"https://api.github.com/users/ctrimble/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrimble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrimble/subscriptions","organizations_url":"https://api.github.com/users/ctrimble/orgs","repos_url":"https://api.github.com/users/ctrimble/repos","events_url":"https://api.github.com/users/ctrimble/events{/privacy}","received_events_url":"https://api.github.com/users/ctrimble/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T05:29:21Z","updated_at":"2015-12-20T05:29:21Z","body":"implemented in #386 "}}