]> Git Repo - qemu.git/blame - tests/qapi-schema/flat-union-optional-discriminator.json
qapi: Tighten checking of unions
[qemu.git] / tests / qapi-schema / flat-union-optional-discriminator.json
CommitLineData
3d0c4829
EB
1# FIXME: we should require the discriminator to be non-optional
2{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
3{ 'type': 'Base',
4 'data': { '*switch': 'Enum' } }
5{ 'type': 'Branch', 'data': { 'name': 'str' } }
6{ 'union': 'MyUnion',
7 'base': 'Base',
8 'discriminator': '*switch',
9 'data': { 'one': 'Branch',
10 'two': 'Branch' } }
This page took 0.027587 seconds and 4 git commands to generate.