summaryrefslogblamecommitdiffstats
path: root/tests/qapi-schema/doc-bad-union-member.json
blob: bd231a0109adcabfdf7bb94c31abd5ebbab6b1e9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                     
                                  



                    
                                           
# Arguments listed in the doc comment must exist in the actual schema

##
# @Frob:
# @a: a
# @b: b
##
{ 'union': 'Frob',
  'base': 'Base',
  'discriminator': 'type',
  'data': { 'nothing': 'Empty' } }

{ 'struct': 'Base',
  'data': { 'type': 'FrobType' } }

{ 'struct': 'Empty',
  'data': { } }

{ 'enum': 'FrobType', 'data': ['nothing'] }