summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-int-branch.json
blob: 3543215436a4bc43cdde41d5e5a5f18a9bd440fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# FIXME: we should require flat union branches to be a complex type
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'type': 'Base',
  'data': { 'enum1': 'TestEnum' } }
{ 'type': 'TestTypeB',
  'data': { 'integer': 'int' } }
{ 'union': 'TestUnion',
  'base': 'Base',
  'discriminator': 'enum1',
  'data': { 'value1': 'int',
            'value2': 'TestTypeB' } }
OpenPOWER on IntegriCloud