aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-base-star.json
blob: 5099439a9d9559cdb8a5009eb545ab56f438526f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# we require the base to be an existing struct
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }
{ 'struct': 'TestTypeB',
  'data': { 'integer': 'int' } }
{ 'union': 'TestUnion',
  'base': '**',
  'discriminator': 'enum1',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }