historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/tests/qapi-schema/flat-union-no-base.json

13 lines
387 B
JSON
Raw Normal View History

2024-01-16 11:20:27 -06:00
# flat unions require a base
# TODO: simple unions should be able to use an enum discriminator
{ 'struct': 'TestTypeA',
'data': { 'string': 'str' } }
{ 'struct': 'TestTypeB',
'data': { 'integer': 'int' } }
{ 'enum': 'Enum',
'data': [ 'value1', 'value2' ] }
{ 'union': 'TestUnion',
'discriminator': 'Enum',
'data': { 'value1': 'TestTypeA',
'value2': 'TestTypeB' } }