summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/union-invalid-base.json
blob: 92be39df69ae7fce191f5113fb82f2be3fd80157 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# a union base type must be a struct
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }

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

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