summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/union-base-no-discriminator.json
blob: 1409cf5c9e0c2ce851f2b917d8ce62bc292ae330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# we reject simple unions with a base (or flat unions without discriminator)
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }

{ 'struct': 'TestTypeB',
  'data': { 'integer': 'int' } }

{ 'struct': 'Base',
  'data': { 'string': 'str' } }

{ 'union': 'TestUnion',
  'base': 'Base',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }