]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/union-invalid-base.json
fd837cb80bebed63a6122535bdaf4a04ea33b34a
[mirror_qemu.git] / tests / qapi-schema / union-invalid-base.json
1 # a union base type must be a struct
2
3 ##
4 # @TestTypeA:
5 ##
6 { 'struct': 'TestTypeA',
7 'data': { 'string': 'str' } }
8
9 ##
10 # @TestTypeB:
11 ##
12 { 'struct': 'TestTypeB',
13 'data': { 'integer': 'int' } }
14
15 ##
16 # @TestUnion:
17 ##
18 { 'union': 'TestUnion',
19 'base': 'int',
20 'discriminator': 'int',
21 'data': { 'value1': 'TestTypeA',
22 'value2': 'TestTypeB' } }