If in the future I add a new a new table to the union, eg:union AnyObject {Object, SubObject1, subObject2, subObject3, subObject4};
will it break backwards compatibility ? will older version still be able to parse the newly generated .bin files ?
objects:[AnyObject]You can't have a vector of unions, unfortunately. You need to wrap the union in table.
Aside from the above issue, you there is no problem adding a new type to the union. Just observe that the union is limited to 255 members and make sure you add the new members at the end of union otherwise you will mix up the encoded ID of the existing types.