]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qapi-schema/flat-union-incomplete-branch.json
qapi: add qapi2texi script
[mirror_qemu.git] / tests / qapi-schema / flat-union-incomplete-branch.json
CommitLineData
d0b18239 1# we require all branches of the union to be covered
3313b612
MAL
2
3##
4# @TestEnum:
5##
d0b18239
EB
6{ 'enum': 'TestEnum',
7 'data': [ 'value1', 'value2' ] }
3313b612
MAL
8##
9# @TestTypeA:
10##
d0b18239
EB
11{ 'struct': 'TestTypeA',
12 'data': { 'string': 'str' } }
3313b612
MAL
13##
14# @TestUnion:
15##
d0b18239
EB
16{ 'union': 'TestUnion',
17 'base': { 'type': 'TestEnum' },
18 'discriminator': 'type',
19 'data': { 'value1': 'TestTypeA' } }