{"action":"opened","issue":{"url":"https://api.github.com/repos/allegro/json-avro-converter/issues/9","repository_url":"https://api.github.com/repos/allegro/json-avro-converter","labels_url":"https://api.github.com/repos/allegro/json-avro-converter/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/allegro/json-avro-converter/issues/9/comments","events_url":"https://api.github.com/repos/allegro/json-avro-converter/issues/9/events","html_url":"https://github.com/allegro/json-avro-converter/issues/9","id":185637846,"number":9,"title":"field [fieldName] is expected to be one of these: RECORD, NULL, for nested record with non defined nullable values ","user":{"login":"gadaldo","id":7781100,"avatar_url":"https://avatars.githubusercontent.com/u/7781100?v=3","gravatar_id":"","url":"https://api.github.com/users/gadaldo","html_url":"https://github.com/gadaldo","followers_url":"https://api.github.com/users/gadaldo/followers","following_url":"https://api.github.com/users/gadaldo/following{/other_user}","gists_url":"https://api.github.com/users/gadaldo/gists{/gist_id}","starred_url":"https://api.github.com/users/gadaldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadaldo/subscriptions","organizations_url":"https://api.github.com/users/gadaldo/orgs","repos_url":"https://api.github.com/users/gadaldo/repos","events_url":"https://api.github.com/users/gadaldo/events{/privacy}","received_events_url":"https://api.github.com/users/gadaldo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-27T11:05:32Z","updated_at":"2016-10-27T11:05:32Z","closed_at":null,"body":"I got:\r\n_Could not evaluate union, field [fieldName] is expected to be one of these: RECORD, NULL. If this is a complex type, check if offending field: trafficSource.adwordsClickInfo adheres to schema._\r\nwhen I have nested records, where some of the 'nullable' fields are not specified.\r\n\r\nschema sample:\r\n```\r\n{\r\n    \"type\": \"record\",\r\n    \"name\": \"Root\",\r\n    \"fields\": [\r\n        {\r\n            \"name\": \"field1\",\r\n            \"type\": [\r\n                \"long\",\r\n                \"null\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"nestedRecord\",\r\n            \"type\": [\r\n                {\r\n                    \"type\": \"record\",\r\n                    \"namespace\": \"root\",\r\n                    \"name\": \"NestedRecord\",\r\n                    \"fields\": [\r\n                        {\r\n                            \"name\": \"nested1\",\r\n                            \"type\": [\r\n                                \"long\",\r\n                                \"null\"\r\n                            ]\r\n                        },\r\n                        {\r\n                            \"name\": \"nested2\",\r\n                            \"type\": [\r\n                                \"long\",\r\n                                \"null\"\r\n                            ]\r\n                        }\r\n                    ]\r\n                },\r\n                \"null\"\r\n            ]\r\n        }\r\n    ]\r\n}\r\n```\r\nand json string such as:\r\n\r\n```\r\n{\r\n\t\"field1\" : 10999859003, \r\n\t\"nestedRecord\": \r\n\t{ \r\n\t\t\"nested1\" : 123321321 \r\n\t}\r\n}\r\n```\r\n\r\nI think when it goes in recursion it is not able to skip missing values because for those missing value at level 0 it skips the missing values.\r\n\r\nThank you"}}
{"actor":{"display_login":"gadaldo"}}