]> Git Repo - qemu.git/blame - tests/qapi-schema/union-invalid-base.json
qapi: Tighten checking of unions
[qemu.git] / tests / qapi-schema / union-invalid-base.json
CommitLineData
3d0c4829 1# a union base type must be a struct
b86b05ed
WX
2{ 'type': 'TestTypeA',
3 'data': { 'string': 'str' } }
4
5{ 'type': 'TestTypeB',
6 'data': { 'integer': 'int' } }
7
8{ 'union': 'TestUnion',
3d0c4829
EB
9 'base': 'int',
10 'discriminator': 'int',
b86b05ed
WX
11 'data': { 'value1': 'TestTypeA',
12 'value2': 'TestTypeB' } }
This page took 0.080995 seconds and 4 git commands to generate.