qemu-e2k/tests/qapi-schema/flat-union-inline.json

12 lines
380 B
JSON
Raw Normal View History

# we require branches to be a struct name
# TODO: should we allow anonymous inline branch types?
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
{ 'union': 'TestUnion',
'base': 'Base',
'discriminator': 'enum1',
'data': { 'value1': { 'type': {} },
'value2': { 'integer': 'int' } } }