summaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-reverse-define.json
blob: 9ea7e722011da60888d396fca2039a7a628d5773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 'union': 'TestUnion',
  'base': 'TestBase',
  'discriminator': 'enum1',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }

{ 'type': 'TestBase',
  'data': { 'enum1': 'TestEnum' } }

{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }

{ 'type': 'TestTypeA',
  'data': { 'string': 'str' } }

{ 'type': 'TestTypeB',
  'data': { 'integer': 'int' } }