qapi: Drop simple unions
[qemu/armbru.git] / tests / qapi-schema / flat-union-no-base.json
blobf6fe12da3bd4d049ddcc7d13f774166483723eaa
1 # unions require a base
2 { 'struct': 'TestTypeA',
3   'data': { 'string': 'str' } }
4 { 'struct': 'TestTypeB',
5   'data': { 'integer': 'int' } }
6 { 'enum': 'Enum',
7   'data': [ 'value1', 'value2' ] }
8 { 'union': 'TestUnion',
9   'discriminator': 'Enum',
10   'data': { 'value1': 'TestTypeA',
11             'value2': 'TestTypeB' } }