summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/unknown-expr-key.json
diff options
context:
space:
mode:
authorMarc-André Lureau2018-12-13 13:37:07 +0100
committerMarkus Armbruster2018-12-13 19:20:11 +0100
commit7e80d48001c8ebc11358596f10ba48daddee05f5 (patch)
treeec198443b4f46451193e84ff26d346fa8b8d3406 /tests/qapi-schema/unknown-expr-key.json
parentqapi: factor out checking for keys (diff)
downloadqemu-7e80d48001c8ebc11358596f10ba48daddee05f5.tar.gz
qemu-7e80d48001c8ebc11358596f10ba48daddee05f5.tar.xz
qemu-7e80d48001c8ebc11358596f10ba48daddee05f5.zip
qapi: improve reporting of unknown or missing keys
Report the set of missing or unknown keys. And give a hint about the accepted keys. The error message for multiple meta type members (visible in tests/qapi-schema/double-type.err) is not improved. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20181213123724.4866-6-marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/unknown-expr-key.json')
-rw-r--r--tests/qapi-schema/unknown-expr-key.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/unknown-expr-key.json b/tests/qapi-schema/unknown-expr-key.json
index 3b2be00cc4..13292d75ed 100644
--- a/tests/qapi-schema/unknown-expr-key.json
+++ b/tests/qapi-schema/unknown-expr-key.json
@@ -1,2 +1,2 @@
# we reject an expression with unknown top-level keys
-{ 'struct': 'bar', 'data': { 'string': 'str'}, 'bogus': { } }
+{ 'struct': 'bar', 'data': { 'string': 'str'}, 'bogus': { }, 'phony': { } }