{"action":"closed","issue":{"url":"https://api.github.com/repos/google/flatbuffers/issues/3838","repository_url":"https://api.github.com/repos/google/flatbuffers","labels_url":"https://api.github.com/repos/google/flatbuffers/issues/3838/labels{/name}","comments_url":"https://api.github.com/repos/google/flatbuffers/issues/3838/comments","events_url":"https://api.github.com/repos/google/flatbuffers/issues/3838/events","html_url":"https://github.com/google/flatbuffers/issues/3838","id":146736577,"number":3838,"title":"Add support for vector of union types","user":{"login":"lbensaad","id":2950904,"avatar_url":"https://avatars.githubusercontent.com/u/2950904?v=3","gravatar_id":"","url":"https://api.github.com/users/lbensaad","html_url":"https://github.com/lbensaad","followers_url":"https://api.github.com/users/lbensaad/followers","following_url":"https://api.github.com/users/lbensaad/following{/other_user}","gists_url":"https://api.github.com/users/lbensaad/gists{/gist_id}","starred_url":"https://api.github.com/users/lbensaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbensaad/subscriptions","organizations_url":"https://api.github.com/users/lbensaad/orgs","repos_url":"https://api.github.com/users/lbensaad/repos","events_url":"https://api.github.com/users/lbensaad/events{/privacy}","received_events_url":"https://api.github.com/users/lbensaad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-07T20:42:49Z","updated_at":"2016-07-19T00:53:33Z","closed_at":"2016-07-19T00:53:33Z","body":"Please add support for  a vector of union types like this:\r\n````\r\nunion Message {Image, Text, Audio, Video}\r\ntable Packet{messages:[Message];}\r\n````\r\nWith that we need to generate the following two methods:\r\n ````\r\nPacket.messages(int i, Table t){...}\r\nPacket.messagesType(i){...}\r\n````\r\nBecause now i am doing it like this:\r\n````\r\nunion Content {Image, Text, Audio, Video}\r\ntable Message{content:Content;}\r\ntable Packet{messages:[Message];}\r\n````\r\nWhich needs more code to be generated and when building the buffers and reading them.\r\nBut with the proposed solution it will be easier and cleaner.\r\n\r\nWhat do you think about it?\r\n"}}
{"actor":{"display_login":"gwvo"}}