aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-array-branch.json
blob: 0b98820a8febf619e5b9b9ad5edcf572c1fa4d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# we require flat union branches to be a struct
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
  'data': { 'enum1': 'TestEnum' } }
{ 'struct': 'TestTypeB',
  'data': { 'integer': 'int' } }
{ 'union': 'TestUnion',
  'base': 'Base',
  'discriminator': 'enum1',
  'data': { 'value1': ['TestTypeB'],
            'value2': 'TestTypeB' } }