summaryrefslogtreecommitdiff
path: root/tests/qapi-schema/doc-bad-union-member.json
blob: d611435f6ae80b01ecfdde8f7f9334463f61041a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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': 'T' } }

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

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