]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/union-base-no-discriminator.json
qapi: add qapi2texi script
[mirror_qemu.git] / tests / qapi-schema / union-base-no-discriminator.json
1 ##
2 # @TestTypeA:
3 ##
4 # we reject simple unions with a base (or flat unions without discriminator)
5 { 'struct': 'TestTypeA',
6 'data': { 'string': 'str' } }
7
8 ##
9 # @TestTypeB:
10 ##
11 { 'struct': 'TestTypeB',
12 'data': { 'integer': 'int' } }
13
14 ##
15 # @Base:
16 ##
17 { 'struct': 'Base',
18 'data': { 'string': 'str' } }
19
20 ##
21 # @TestUnion:
22 ##
23 { 'union': 'TestUnion',
24 'base': 'Base',
25 'data': { 'value1': 'TestTypeA',
26 'value2': 'TestTypeB' } }