summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/type-bypass-bad-gen.out
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2015-05-04 09:05:24 -0600
committerMarkus Armbruster <armbru@redhat.com>2015-05-05 18:39:01 +0200
commit2cbf09925ad45401673a79ab77f67de2f04a826c (patch)
tree50fb23198c62297cdcc892e6d57301109621cfd4 /tests/qapi-schema/type-bypass-bad-gen.out
parent10d4d997f86cf2a4ce89145df5658952d5722e56 (diff)
downloadhqemu-2cbf09925ad45401673a79ab77f67de2f04a826c.zip
hqemu-2cbf09925ad45401673a79ab77f67de2f04a826c.tar.gz
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/type-bypass-bad-gen.out')
-rw-r--r--tests/qapi-schema/type-bypass-bad-gen.out3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/qapi-schema/type-bypass-bad-gen.out b/tests/qapi-schema/type-bypass-bad-gen.out
index e678f2c..e69de29 100644
--- a/tests/qapi-schema/type-bypass-bad-gen.out
+++ b/tests/qapi-schema/type-bypass-bad-gen.out
@@ -1,3 +0,0 @@
-[OrderedDict([('command', 'foo'), ('gen', 'whatever')])]
-[]
-[]
OpenPOWER on IntegriCloud