summaryrefslogblamecommitdiffstats
path: root/tests/qapi-schema/union-base-no-discriminator.json
blob: 2e7cae9b2281d4149d47d37aed4e61cc321be5ad (plain) (tree)
1
2
3
4
5
6
7
8
                                        
                        

                               
                        

                                
                   





                                     
# we reject unions without discriminator
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }

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

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

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