aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-branch-clash.json
blob: 4091477b049d1b84bf20cbad8807805b4b4aef0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# FIXME: we should check for no duplicate keys between branches and base
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'type': 'Base',
  'data': { 'enum1': 'TestEnum', 'name': 'str' } }
{ 'type': 'Branch1',
  'data': { 'name': 'str' } }
{ 'type': 'Branch2',
  'data': { 'value': 'int' } }
{ 'union': 'TestUnion',
  'base': 'Base',
  'discriminator': 'enum1',
  'data': { 'value1': 'Branch1',
            'value2': 'Branch2' } }