aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/union-base-no-discriminator.json
blob: 052596c46ee1849e321bca9b29b50727447c3ed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# we reject simple unions with a base (or flat unions without discriminator)
{ 'type': 'TestTypeA',
  'data': { 'string': 'str' } }

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

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

{ 'union': 'TestUnion',
  'base': 'Base',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }