]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/flat-union-base-union.json
Merge remote-tracking branch 'remotes/armbru/tags/pull-qmp-2015-05-05' into staging
[mirror_qemu.git] / tests / qapi-schema / flat-union-base-union.json
1 # we require the base to be a struct
2 { 'enum': 'TestEnum',
3 'data': [ 'value1', 'value2' ] }
4 { 'struct': 'TestTypeA',
5 'data': { 'string': 'str' } }
6 { 'struct': 'TestTypeB',
7 'data': { 'integer': 'int' } }
8 { 'union': 'UnionBase',
9 'data': { 'kind1': 'TestTypeA',
10 'kind2': 'TestTypeB' } }
11 { 'union': 'TestUnion',
12 'base': 'UnionBase',
13 'discriminator': 'type',
14 'data': { 'kind1': 'TestTypeA',
15 'kind2': 'TestTypeB' } }