]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/flat-union-no-base.json
qapi: Support downstream structs
[mirror_qemu.git] / tests / qapi-schema / flat-union-no-base.json
1 # flat unions require a base
2 # TODO: simple unions should be able to use an enum discriminator
3 { 'struct': 'TestTypeA',
4 'data': { 'string': 'str' } }
5 { 'struct': 'TestTypeB',
6 'data': { 'integer': 'int' } }
7 { 'enum': 'Enum',
8 'data': [ 'value1', 'value2' ] }
9 { 'union': 'TestUnion',
10 'discriminator': 'Enum',
11 'data': { 'value1': 'TestTypeA',
12 'value2': 'TestTypeB' } }