qemu-e2k/tests/qapi-schema/union-base-no-discriminator...

15 lines
331 B
JSON
Raw Normal View History

# FIXME: we should reject simple unions with a base
{ 'type': 'TestTypeA',
'data': { 'string': 'str' } }
{ 'type': 'TestTypeB',
'data': { 'integer': 'int' } }
{ 'type': 'Base',
'data': { 'string': 'str' } }
{ 'union': 'TestUnion',
'base': 'Base',
'data': { 'value1': 'TestTypeA',
'value2': 'TestTypeB' } }