aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-no-base.json
blob: 08a02476a309b67f1dff452e5ac20d44ffd11770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# FIXME: flat unions should require a base
# TODO: simple unions should be able to use an enum discriminator
{ 'type': 'TestTypeA',
  'data': { 'string': 'str' } }
{ 'type': 'TestTypeB',
  'data': { 'integer': 'int' } }
{ 'enum': 'Enum',
  'data': [ 'value1', 'value2' ] }
{ 'union': 'TestUnion',
  'discriminator': 'Enum',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }