]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/flat-union-invalid-branch-key.json
qapi: add qapi2texi script
[mirror_qemu.git] / tests / qapi-schema / flat-union-invalid-branch-key.json
1 ##
2 # @TestEnum:
3 ##
4 { 'enum': 'TestEnum',
5 'data': [ 'value1', 'value2' ] }
6
7 ##
8 # @TestBase:
9 ##
10 { 'struct': 'TestBase',
11 'data': { 'enum1': 'TestEnum' } }
12
13 ##
14 # @TestTypeA:
15 ##
16 { 'struct': 'TestTypeA',
17 'data': { 'string': 'str' } }
18
19 ##
20 # @TestTypeB:
21 ##
22 { 'struct': 'TestTypeB',
23 'data': { 'integer': 'int' } }
24
25 ##
26 # @TestUnion:
27 ##
28 { 'union': 'TestUnion',
29 'base': 'TestBase',
30 'discriminator': 'enum1',
31 'data': { 'value_wrong': 'TestTypeA',
32 'value2': 'TestTypeB' } }