qemu/tests/qapi-schema/doc-bad-alternate-member.json
Markus Armbruster 8168ca8ea3 tests/qapi-schema: Avoid 'str' in alternate test cases
The next commit is going to make alternate members of type 'str'
conflict with other scalar types.  Would break a few test cases that
don't actually require 'str'.  Flip them from 'str' to 'bool' or
'EnumOne'.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1495471335-23707-4-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-05-31 16:04:05 +02:00

10 lines
167 B
JSON

# Arguments listed in the doc comment must exist in the actual schema
##
# @AorB:
# @aa: a
# @bb: b
##
{ 'alternate': 'AorB',
'data': { 'a': 'bool', 'b': 'int' } }