summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/union-base-no-discriminator.json
blob: c8cba3ad7c09b32e42142d4a67a90d4cefccf447 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# 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' } }
OpenPOWER on IntegriCloud