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