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

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

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