]> Git Repo - qemu.git/blame - tests/qapi-schema/flat-union-bad-discriminator.json
qapi: Add tests of complex objects within alternate
[qemu.git] / tests / qapi-schema / flat-union-bad-discriminator.json
CommitLineData
44bd1276 1# we require the discriminator to be a string naming a base-type member
ab916fad 2# this tests the old syntax for anonymous unions before we added alternates
3d0c4829
EB
3{ 'enum': 'TestEnum',
4 'data': [ 'value1', 'value2' ] }
895a2a80 5{ 'struct': 'TestBase',
3d0c4829 6 'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
895a2a80 7{ 'struct': 'TestTypeA',
3d0c4829 8 'data': { 'string': 'str' } }
895a2a80 9{ 'struct': 'TestTypeB',
3d0c4829
EB
10 'data': { 'integer': 'int' } }
11{ 'union': 'TestUnion',
12 'base': 'TestBase',
ab916fad 13 'discriminator': {},
3d0c4829
EB
14 'data': { 'kind1': 'TestTypeA',
15 'kind2': 'TestTypeB' } }
This page took 0.082405 seconds and 4 git commands to generate.