aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-int-branch.json
blob: 9603e172f8d61bcf17b126ea25010698dcfac8ac (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 flat union branches to be a struct

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