summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-invalid-discriminator.exit
diff options
context:
space:
mode:
authorEric Blake2015-05-04 17:05:24 +0200
committerMarkus Armbruster2015-05-05 18:39:01 +0200
commit2cbf09925ad45401673a79ab77f67de2f04a826c (patch)
tree50fb23198c62297cdcc892e6d57301109621cfd4 /tests/qapi-schema/flat-union-invalid-discriminator.exit
parentqapi: Whitelist commands that don't return dictionary (diff)
downloadqemu-2cbf09925ad45401673a79ab77f67de2f04a826c.tar.gz
qemu-2cbf09925ad45401673a79ab77f67de2f04a826c.tar.xz
qemu-2cbf09925ad45401673a79ab77f67de2f04a826c.zip
qapi: More rigorous checking for type safety bypass
Now that we have a way to validate every type, we can also be stricter about enforcing that callers that want to bypass type safety in generated code. Prior to this patch, it didn't matter what value was associated with the key 'gen', but it looked odd that 'gen':'yes' could result in bypassing the generated code. These changes also enforce the changes made earlier in the series for documentation and consolidation of using '**' as the wildcard type, as well as 'gen':false as the canonical spelling for requesting type bypass. Note that 'gen':false is a one-way switch away from the default; we do not support 'gen':true (similar for 'success-response'). In practice, this doesn't matter. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/flat-union-invalid-discriminator.exit')
0 files changed, 0 insertions, 0 deletions