{"action":"closed","issue":{"url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/47","repository_url":"https://api.github.com/repos/YousefED/typescript-json-schema","labels_url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/47/comments","events_url":"https://api.github.com/repos/YousefED/typescript-json-schema/issues/47/events","html_url":"https://github.com/YousefED/typescript-json-schema/issues/47","id":165448928,"number":47,"title":"Support \"anyOf\" for union type","user":{"login":"kanitw","id":111269,"avatar_url":"https://avatars.githubusercontent.com/u/111269?v=3","gravatar_id":"","url":"https://api.github.com/users/kanitw","html_url":"https://github.com/kanitw","followers_url":"https://api.github.com/users/kanitw/followers","following_url":"https://api.github.com/users/kanitw/following{/other_user}","gists_url":"https://api.github.com/users/kanitw/gists{/gist_id}","starred_url":"https://api.github.com/users/kanitw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kanitw/subscriptions","organizations_url":"https://api.github.com/users/kanitw/orgs","repos_url":"https://api.github.com/users/kanitw/repos","events_url":"https://api.github.com/users/kanitw/events{/privacy}","received_events_url":"https://api.github.com/users/kanitw/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-14T00:06:01Z","updated_at":"2016-09-16T10:51:45Z","closed_at":"2016-09-16T10:51:45Z","body":"Currently union type always output \"oneOf\", but sometimes a JSON spec might satisfy multiple types of the TS interfaces.   Support using \"anyOf\" instead (and possibly by default would be useful). \r\n\r\n\r\nI remember @domoritz implemented this with `oneOf`, not sure how hard it is to use `anyOf`.  "}}
{"actor":{"display_login":"YousefED"}}