]> git.proxmox.com Git - mirror_qemu.git/blame - tests/qapi-schema/flat-union-bad-base.json
qapi: Use 'struct' instead of 'type' in schema
[mirror_qemu.git] / tests / qapi-schema / flat-union-bad-base.json
CommitLineData
fd41dd4e 1# we require the base to be an existing struct
3d0c4829
EB
2# TODO: should we allow an anonymous inline base type?
3{ 'enum': 'TestEnum',
4 'data': [ 'value1', 'value2' ] }
895a2a80 5{ 'struct': 'TestTypeA',
3d0c4829 6 'data': { 'string': 'str' } }
895a2a80 7{ 'struct': 'TestTypeB',
3d0c4829
EB
8 'data': { 'integer': 'int' } }
9{ 'union': 'TestUnion',
10 'base': { 'enum1': 'TestEnum', 'kind': 'str' },
11 'discriminator': 'enum1',
12 'data': { 'value1': 'TestTypeA',
13 'value2': 'TestTypeB' } }