mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 06:53:43 +08:00
f641d06ad6
New test doc-bad-union-member.json shows we can fail to reject documentation for nonexistent members. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1489582656-31133-37-git-send-email-armbru@redhat.com>
20 lines
326 B
JSON
20 lines
326 B
JSON
# 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'] }
|