1 # a union base type must be a struct
6 { 'struct': 'TestTypeA',
7 'data': { 'string': 'str' } }
12 { 'struct': 'TestTypeB',
13 'data': { 'integer': 'int' } }
18 { 'union': 'TestUnion',
20 'discriminator': 'int',
21 'data': { 'value1': 'TestTypeA',
22 'value2': 'TestTypeB' } }