{"action":"created","issue":{"url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/issues/16","labels_url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/issues/16/comments","events_url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/issues/16/events","html_url":"https://github.com/jamesbrucepower/node-avro-io/pull/16","id":94475752,"number":16,"title":"Adding self-references to non-primitive types.","user":{"login":"austinkelleher","id":3771924,"avatar_url":"https://avatars.githubusercontent.com/u/3771924?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkelleher","html_url":"https://github.com/austinkelleher","followers_url":"https://api.github.com/users/austinkelleher/followers","following_url":"https://api.github.com/users/austinkelleher/following{/other_user}","gists_url":"https://api.github.com/users/austinkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkelleher/subscriptions","organizations_url":"https://api.github.com/users/austinkelleher/orgs","repos_url":"https://api.github.com/users/austinkelleher/repos","events_url":"https://api.github.com/users/austinkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/austinkelleher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-11T13:55:00Z","updated_at":"2015-07-16T14:11:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/pulls/16","html_url":"https://github.com/jamesbrucepower/node-avro-io/pull/16","diff_url":"https://github.com/jamesbrucepower/node-avro-io/pull/16.diff","patch_url":"https://github.com/jamesbrucepower/node-avro-io/pull/16.patch"},"body":"I ran into an issue with the Avro schemas we use where we reference non-primitive types that have already been defined by name. I replace the non-primitive type with a copy of the original type if it's found, otherwise the non-primitive type error is thrown as usual."},"comment":{"url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/issues/comments/121968119","html_url":"https://github.com/jamesbrucepower/node-avro-io/pull/16#issuecomment-121968119","issue_url":"https://api.github.com/repos/jamesbrucepower/node-avro-io/issues/16","id":121968119,"user":{"login":"austinkelleher","id":3771924,"avatar_url":"https://avatars.githubusercontent.com/u/3771924?v=3","gravatar_id":"","url":"https://api.github.com/users/austinkelleher","html_url":"https://github.com/austinkelleher","followers_url":"https://api.github.com/users/austinkelleher/followers","following_url":"https://api.github.com/users/austinkelleher/following{/other_user}","gists_url":"https://api.github.com/users/austinkelleher/gists{/gist_id}","starred_url":"https://api.github.com/users/austinkelleher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinkelleher/subscriptions","organizations_url":"https://api.github.com/users/austinkelleher/orgs","repos_url":"https://api.github.com/users/austinkelleher/repos","events_url":"https://api.github.com/users/austinkelleher/events{/privacy}","received_events_url":"https://api.github.com/users/austinkelleher/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T14:11:18Z","updated_at":"2015-07-16T14:11:18Z","body":"Without the setImmediate, the tests fail at random times. They happened to fail on my Travis build. This was in a different PR by someone else, but I wanted my tests to pass."}}