{"action":"closed","issue":{"url":"https://api.github.com/repos/compose/transporter/issues/43","labels_url":"https://api.github.com/repos/compose/transporter/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/compose/transporter/issues/43/comments","events_url":"https://api.github.com/repos/compose/transporter/issues/43/events","html_url":"https://github.com/compose/transporter/issues/43","id":54056429,"number":43,"title":"File adapter + Transformer works but emits unlabeled warning","user":{"login":"codepope","id":72684,"avatar_url":"https://avatars.githubusercontent.com/u/72684?v=3","gravatar_id":"","url":"https://api.github.com/users/codepope","html_url":"https://github.com/codepope","followers_url":"https://api.github.com/users/codepope/followers","following_url":"https://api.github.com/users/codepope/following{/other_user}","gists_url":"https://api.github.com/users/codepope/gists{/gist_id}","starred_url":"https://api.github.com/users/codepope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codepope/subscriptions","organizations_url":"https://api.github.com/users/codepope/orgs","repos_url":"https://api.github.com/users/codepope/repos","events_url":"https://api.github.com/users/codepope/events{/privacy}","received_events_url":"https://api.github.com/users/codepope/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-12T14:01:31Z","updated_at":"2015-01-12T15:33:00Z","closed_at":"2015-01-12T15:33:00Z","body":"Run any Transformer with the File adapter and the process will work but the console will be full of\r\n\r\nunknown type: map[string]interface {}\r\nunknown type: map[string]interface {}\r\nunknown type: map[string]interface {}\r\nunknown type: map[string]interface {}\r\n...\r\n\r\nReason is the File adapter emits a map. The map is detected by the Transformer's transformOne function. This then calls mejson.Marshal(msg.Data). Mejson has no code to match with a map[string]interface() so it falls through to default...\r\n\r\n\tdefault:\r\n\t\t\tfmt.Fprintf(os.Stderr, \"unknown type: %T\\n\", v)\r\n\t\t\treturn json.Marshal(v)\r\n\t\t}\r\n\r\nwhich emits the error but still marshals the value allowing the code to work.\r\n\r\nDon't know whether to fix in mejson or in the transformer.\r\n"}}