summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-branch-clash.json
blob: 8b0b807a03dcba45bdadcd5cdcef6bd2e6add659 (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' ] }
{ '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' } }
OpenPOWER on IntegriCloud