{"action":"opened","issue":{"url":"https://api.github.com/repos/allegro/json-avro-converter/issues/6","repository_url":"https://api.github.com/repos/allegro/json-avro-converter","labels_url":"https://api.github.com/repos/allegro/json-avro-converter/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/allegro/json-avro-converter/issues/6/comments","events_url":"https://api.github.com/repos/allegro/json-avro-converter/issues/6/events","html_url":"https://github.com/allegro/json-avro-converter/issues/6","id":178289512,"number":6,"title":"Field is expected to be type: java.util.Map","user":{"login":"mariussoutier","id":248811,"avatar_url":"https://avatars.githubusercontent.com/u/248811?v=3","gravatar_id":"","url":"https://api.github.com/users/mariussoutier","html_url":"https://github.com/mariussoutier","followers_url":"https://api.github.com/users/mariussoutier/followers","following_url":"https://api.github.com/users/mariussoutier/following{/other_user}","gists_url":"https://api.github.com/users/mariussoutier/gists{/gist_id}","starred_url":"https://api.github.com/users/mariussoutier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariussoutier/subscriptions","organizations_url":"https://api.github.com/users/mariussoutier/orgs","repos_url":"https://api.github.com/users/mariussoutier/repos","events_url":"https://api.github.com/users/mariussoutier/events{/privacy}","received_events_url":"https://api.github.com/users/mariussoutier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-21T09:12:02Z","updated_at":"2016-09-21T09:12:02Z","closed_at":null,"body":"When I try to convert input JSON with a schema that has some ebedded records, I get the exception `Field <fieldname> expected to be type: java.util.Map` when calling `convertToGenericDataRecord` where <fieldname> is the name of the embedded record field.\r\n\r\nStacktrace:\r\n~~~\r\ntech.allegro.schema.json2avro.converter.AvroConversionException: Failed to convert JSON to Avro\r\n at tech.allegro.schema.json2avro.converter.JsonGenericRecordReader.read(JsonGenericRecordReader.java:47)\r\n at tech.allegro.schema.json2avro.converter.JsonGenericRecordReader.read(JsonGenericRecordReader.java:36)\r\n at tech.allegro.schema.json2avro.converter.JsonAvroConverter.convertToGenericDataRecord(JsonAvroConverter.java:47)\r\n~~~\r\n"}}
{"actor":{"display_login":"mariussoutier"}}