{"action":"created","issue":{"url":"https://api.github.com/repos/sksamuel/avro4s/issues/110","repository_url":"https://api.github.com/repos/sksamuel/avro4s","labels_url":"https://api.github.com/repos/sksamuel/avro4s/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/sksamuel/avro4s/issues/110/comments","events_url":"https://api.github.com/repos/sksamuel/avro4s/issues/110/events","html_url":"https://github.com/sksamuel/avro4s/issues/110","id":214013587,"node_id":"MDU6SXNzdWUyMTQwMTM1ODc=","number":110,"title":"RecordFormat[T].from(...) not picking up default values of schema","user":{"login":"pjan","id":98241,"node_id":"MDQ6VXNlcjk4MjQx","avatar_url":"https://avatars3.githubusercontent.com/u/98241?v=4","gravatar_id":"","url":"https://api.github.com/users/pjan","html_url":"https://github.com/pjan","followers_url":"https://api.github.com/users/pjan/followers","following_url":"https://api.github.com/users/pjan/following{/other_user}","gists_url":"https://api.github.com/users/pjan/gists{/gist_id}","starred_url":"https://api.github.com/users/pjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjan/subscriptions","organizations_url":"https://api.github.com/users/pjan/orgs","repos_url":"https://api.github.com/users/pjan/repos","events_url":"https://api.github.com/users/pjan/events{/privacy}","received_events_url":"https://api.github.com/users/pjan/received_events","type":"User","site_admin":false},"labels":[{"id":261189409,"node_id":"MDU6TGFiZWwyNjExODk0MDk=","url":"https://api.github.com/repos/sksamuel/avro4s/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"sksamuel","id":743706,"node_id":"MDQ6VXNlcjc0MzcwNg==","avatar_url":"https://avatars3.githubusercontent.com/u/743706?v=4","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"assignees":[{"login":"sksamuel","id":743706,"node_id":"MDQ6VXNlcjc0MzcwNg==","avatar_url":"https://avatars3.githubusercontent.com/u/743706?v=4","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/sksamuel/avro4s/milestones/2","html_url":"https://github.com/sksamuel/avro4s/milestone/2","labels_url":"https://api.github.com/repos/sksamuel/avro4s/milestones/2/labels","id":3573237,"node_id":"MDk6TWlsZXN0b25lMzU3MzIzNw==","number":2,"title":"2.0","description":null,"creator":{"login":"sksamuel","id":743706,"node_id":"MDQ6VXNlcjc0MzcwNg==","avatar_url":"https://avatars3.githubusercontent.com/u/743706?v=4","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":18,"state":"open","created_at":"2018-08-15T15:12:40Z","updated_at":"2018-10-04T00:39:32Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2017-03-14T09:33:46Z","updated_at":"2018-10-04T00:39:32Z","closed_at":"2018-10-04T00:39:32Z","author_association":"CONTRIBUTOR","body":"How to reproduce:\r\n\r\n```\r\ncase class P1(name: String, age: Int = 18)\r\ncase class P2(name: String)\r\n\r\nval f1 = RecordFormat[P1]\r\nval f2 = RecordFormat[P2]\r\n\r\nf1.from(f2.to(P2(\"test\")))\r\n```\r\n\r\nThis blows up in a nullpointer exception during runtime. Expected behaviour would be that the default value of the schema gets picked up, and the code doesn't blow up. Or am I missing something?"},"comment":{"url":"https://api.github.com/repos/sksamuel/avro4s/issues/comments/426848169","html_url":"https://github.com/sksamuel/avro4s/issues/110#issuecomment-426848169","issue_url":"https://api.github.com/repos/sksamuel/avro4s/issues/110","id":426848169,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjg0ODE2OQ==","user":{"login":"sksamuel","id":743706,"node_id":"MDQ6VXNlcjc0MzcwNg==","avatar_url":"https://avatars3.githubusercontent.com/u/743706?v=4","gravatar_id":"","url":"https://api.github.com/users/sksamuel","html_url":"https://github.com/sksamuel","followers_url":"https://api.github.com/users/sksamuel/followers","following_url":"https://api.github.com/users/sksamuel/following{/other_user}","gists_url":"https://api.github.com/users/sksamuel/gists{/gist_id}","starred_url":"https://api.github.com/users/sksamuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sksamuel/subscriptions","organizations_url":"https://api.github.com/users/sksamuel/orgs","repos_url":"https://api.github.com/users/sksamuel/repos","events_url":"https://api.github.com/users/sksamuel/events{/privacy}","received_events_url":"https://api.github.com/users/sksamuel/received_events","type":"User","site_admin":false},"created_at":"2018-10-04T00:39:32Z","updated_at":"2018-10-04T00:39:32Z","author_association":"OWNER","body":"This is fixed in 2.0.0-M3 onwards.\r\n\r\nSee test using your code added here:\r\nhttps://github.com/sksamuel/avro4s/blob/master/avro4s-core/src/test/scala/com/sksamuel/avro4s/github/GithubIssue110.scala"}}
{"actor":{"display_login":"sksamuel"}}