aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-base-any.json
blob: fe66b713ef4746ea375199e346d3c29662b1747f (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': 'any',
  'discriminator': 'enum1',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }