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

27 lines
437 B
JSON

##
# @TestTypeA:
##
# we reject simple unions with a base (or flat unions without discriminator)
{ 'struct': 'TestTypeA',
'data': { 'string': 'str' } }
##
# @TestTypeB:
##
{ 'struct': 'TestTypeB',
'data': { 'integer': 'int' } }
##
# @Base:
##
{ 'struct': 'Base',
'data': { 'string': 'str' } }
##
# @TestUnion:
##
{ 'union': 'TestUnion',
'base': 'Base',
'data': { 'value1': 'TestTypeA',
'value2': 'TestTypeB' } }