summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-int-branch.json
blob: 9370c349e8b3b2fd0248d6b5de13c065c3413e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# we require flat 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': 'int',
            'value2': 'TestTypeB' } }
OpenPOWER on IntegriCloud