aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-incomplete-branch.json
blob: dea03775c7df81f288ff51dc1cde7236e381d8d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# we require all branches of the union to be covered

##
# @TestEnum:
##
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
##
# @TestTypeA:
##
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }
##
# @TestUnion:
##
{ 'union': 'TestUnion',
  'base': { 'type': 'TestEnum' },
  'discriminator': 'type',
  'data': { 'value1': 'TestTypeA' } }