aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-base-any.json
blob: 3dfb02fa30ab26ebadd40af76bf7a2d3f5983049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# we require the base to be an existing struct

##
# @TestEnum:
##
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
##
# @TestTypeA:
##
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }
##
# @TestTypeB:
##
{ 'struct': 'TestTypeB',
  'data': { 'integer': 'int' } }
##
# @TestUnion:
##
{ 'union': 'TestUnion',
  'base': 'any',
  'discriminator': 'enum1',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }