]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qapi-schema/flat-union-base-union.json
qapi: Back out doc comments added just to please qapi.py
[mirror_qemu.git] / tests / qapi-schema / flat-union-base-union.json
CommitLineData
d220fbcd
EB
1# For now, we require the base to be a struct without variants
2# TODO: It would be possible to allow a union as a base, as long as all
3# permutations of QMP names exposed by base do not clash with any QMP
4# member names added by local variants.
3d0c4829
EB
5{ 'enum': 'TestEnum',
6 'data': [ 'value1', 'value2' ] }
895a2a80 7{ 'struct': 'TestTypeA',
3d0c4829 8 'data': { 'string': 'str' } }
895a2a80 9{ 'struct': 'TestTypeB',
3d0c4829
EB
10 'data': { 'integer': 'int' } }
11{ 'union': 'UnionBase',
12 'data': { 'kind1': 'TestTypeA',
13 'kind2': 'TestTypeB' } }
14{ 'union': 'TestUnion',
15 'base': 'UnionBase',
16 'discriminator': 'type',
17 'data': { 'kind1': 'TestTypeA',
18 'kind2': 'TestTypeB' } }