{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-dataformat-avro/issues/23","labels_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-avro/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-avro/issues/23/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-avro/issues/23/events","html_url":"https://github.com/FasterXML/jackson-dataformat-avro/issues/23","id":109554983,"number":23,"title":"Similar to issue #6, MapWriteContext.createChildObjectContext() should call _schema.getValueType()","user":{"login":"shoeree","id":7365371,"avatar_url":"https://avatars.githubusercontent.com/u/7365371?v=3","gravatar_id":"","url":"https://api.github.com/users/shoeree","html_url":"https://github.com/shoeree","followers_url":"https://api.github.com/users/shoeree/followers","following_url":"https://api.github.com/users/shoeree/following{/other_user}","gists_url":"https://api.github.com/users/shoeree/gists{/gist_id}","starred_url":"https://api.github.com/users/shoeree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoeree/subscriptions","organizations_url":"https://api.github.com/users/shoeree/orgs","repos_url":"https://api.github.com/users/shoeree/repos","events_url":"https://api.github.com/users/shoeree/events{/privacy}","received_events_url":"https://api.github.com/users/shoeree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T19:17:47Z","updated_at":"2015-10-03T02:03:17Z","closed_at":null,"body":"Hello!\r\n\r\nI was attempting to serialize an Avro record containing a \"map\" with record-type values, and encountered this error:\r\n\r\n```JsonMappingException: Not an array: <redacted>```\r\n\r\n... I see that in Issue #6, deserializing the \"map\" type appears to call ```getElementType()```. In MapWriteContext.java, ```getElementType()``` is also called, like so:\r\n\r\n```java\r\n@Override\r\npublic final AvroWriteContext createChildObjectContext() throws JsonMappingException\r\n{\r\n    _verifyValueWrite();\r\n    AvroWriteContext child = _createObjectContext(_schema.getElementType());\r\n    _data.put(_currentName, child.rawValue());\r\n    return child;\r\n}\r\n```\r\n\r\nShouldn't this instead use ```_schema.getValueType()```?"},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-dataformat-avro/issues/comments/145193412","html_url":"https://github.com/FasterXML/jackson-dataformat-avro/issues/23#issuecomment-145193412","issue_url":"https://api.github.com/repos/FasterXML/jackson-dataformat-avro/issues/23","id":145193412,"user":{"login":"cowtowncoder","id":55065,"avatar_url":"https://avatars.githubusercontent.com/u/55065?v=3","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":"2015-10-03T02:03:17Z","updated_at":"2015-10-03T02:03:17Z","body":"Yes, quite probably it should.\r\n\r\nAny possibility of a simple unit test? :)"}}