{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1642","repository_url":"https://api.github.com/repos/FasterXML/jackson-databind","labels_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1642/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1642/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1642/events","html_url":"https://github.com/FasterXML/jackson-databind/pull/1642","id":233435908,"number":1642,"title":"Support `READ_UNKNOWN_ENUM_VALUES_AS_NULL` with `@JsonCreator`","user":{"login":"joelittlejohn","id":686384,"avatar_url":"https://avatars3.githubusercontent.com/u/686384?v=4","gravatar_id":"","url":"https://api.github.com/users/joelittlejohn","html_url":"https://github.com/joelittlejohn","followers_url":"https://api.github.com/users/joelittlejohn/followers","following_url":"https://api.github.com/users/joelittlejohn/following{/other_user}","gists_url":"https://api.github.com/users/joelittlejohn/gists{/gist_id}","starred_url":"https://api.github.com/users/joelittlejohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelittlejohn/subscriptions","organizations_url":"https://api.github.com/users/joelittlejohn/orgs","repos_url":"https://api.github.com/users/joelittlejohn/repos","events_url":"https://api.github.com/users/joelittlejohn/events{/privacy}","received_events_url":"https://api.github.com/users/joelittlejohn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2017-06-04T14:10:42Z","updated_at":"2018-04-06T00:11:54Z","closed_at":"2017-06-06T15:25:07Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/pulls/1642","html_url":"https://github.com/FasterXML/jackson-databind/pull/1642","diff_url":"https://github.com/FasterXML/jackson-databind/pull/1642.diff","patch_url":"https://github.com/FasterXML/jackson-databind/pull/1642.patch"},"body":"The deserialization feature READ_UNKNOWN_ENUM_VALUES_AS_NULL allows enum values that are not recognised to take a null value when parsed. Before this commit, this deserialization feature did not work whenever an enum had a method marked `@JsonCreator`, and the enum creator method itself had\r\nto choose null in the case of unknown input.\r\n\r\nWith this change, if an enum creator method throws an IllegalArgumentException then this is considered to be an unknown value and (if READ_UNKNOWN_ENUM_VALUES_AS_NULL is active) then null will be\r\nused."},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/comments/379112852","html_url":"https://github.com/FasterXML/jackson-databind/pull/1642#issuecomment-379112852","issue_url":"https://api.github.com/repos/FasterXML/jackson-databind/issues/1642","id":379112852,"user":{"login":"cowtowncoder","id":55065,"avatar_url":"https://avatars0.githubusercontent.com/u/55065?v=4","gravatar_id":"","url":"https://api.github.com/users/cowtowncoder","html_url":"https://github.com/cowtowncoder","followers_url":"https://api.github.com/users/cowtowncoder/followers","following_url":"https://api.github.com/users/cowtowncoder/following{/other_user}","gists_url":"https://api.github.com/users/cowtowncoder/gists{/gist_id}","starred_url":"https://api.github.com/users/cowtowncoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cowtowncoder/subscriptions","organizations_url":"https://api.github.com/users/cowtowncoder/orgs","repos_url":"https://api.github.com/users/cowtowncoder/repos","events_url":"https://api.github.com/users/cowtowncoder/events{/privacy}","received_events_url":"https://api.github.com/users/cowtowncoder/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T00:11:54Z","updated_at":"2018-04-06T00:11:54Z","author_association":"OWNER","body":"@yichuan1118 As per my earlier comment on a commit:\r\n\r\n    Backported 1642 in 2.8.9\r\n"}}
{"actor":{"display_login":"cowtowncoder"}}