aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/union-array-branch.json
blob: 6dda7ec379a1bbf7bfe7ffade6c3b765927f4836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# we require 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' } }