]> git.proxmox.com Git - mirror_qemu.git/blob - tests/qapi-schema/flat-union-reverse-define.json
qapi: Use 'struct' instead of 'type' in schema
[mirror_qemu.git] / tests / qapi-schema / flat-union-reverse-define.json
1 { 'union': 'TestUnion',
2 'base': 'TestBase',
3 'discriminator': 'enum1',
4 'data': { 'value1': 'TestTypeA',
5 'value2': 'TestTypeB' } }
6
7 { 'struct': 'TestBase',
8 'data': { 'enum1': 'TestEnum' } }
9
10 { 'enum': 'TestEnum',
11 'data': [ 'value1', 'value2' ] }
12
13 { 'struct': 'TestTypeA',
14 'data': { 'string': 'str' } }
15
16 { 'struct': 'TestTypeB',
17 'data': { 'integer': 'int' } }