1 # flat unions require a base
2 # TODO: simple unions should be able to use an enum discriminator
7 { 'struct': 'TestTypeA',
8 'data': { 'string': 'str' } }
12 { 'struct': 'TestTypeB',
13 'data': { 'integer': 'int' } }
18 'data': [ 'value1', 'value2' ] }
22 { 'union': 'TestUnion',
23 'discriminator': 'Enum',
24 'data': { 'value1': 'TestTypeA',
25 'value2': 'TestTypeB' } }