summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/enum-if-invalid.err
diff options
context:
space:
mode:
authorMarc-André Lureau2021-08-04 10:31:01 +0200
committerMarkus Armbruster2021-08-26 13:53:56 +0200
commit5d83b9a130690f879d5f33e991beabe69cb88bc8 (patch)
treeec68563193b1bbaafb4614a08e15845d33f8d7d9 /tests/qapi-schema/enum-if-invalid.err
parentqapidoc: introduce QAPISchemaIfCond.docgen() (diff)
downloadqemu-5d83b9a130690f879d5f33e991beabe69cb88bc8.tar.gz
qemu-5d83b9a130690f879d5f33e991beabe69cb88bc8.tar.xz
qemu-5d83b9a130690f879d5f33e991beabe69cb88bc8.zip
qapi: replace if condition list with dict {'all': [...]}
Replace the simple list sugar form with a recursive structure that will accept other operators in the following commits (all, any or not). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210804083105.97531-7-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> [Accidental code motion undone. Degenerate :forms: comment dropped. Helper _check_if() moved. Error messages tweaked. ui.json updated. Accidental changes to qapi-schema-test.json dropped.] Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/enum-if-invalid.err')
-rw-r--r--tests/qapi-schema/enum-if-invalid.err3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/qapi-schema/enum-if-invalid.err b/tests/qapi-schema/enum-if-invalid.err
index 0556dc967b..df305cd79f 100644
--- a/tests/qapi-schema/enum-if-invalid.err
+++ b/tests/qapi-schema/enum-if-invalid.err
@@ -1,2 +1,3 @@
enum-if-invalid.json: In enum 'TestIfEnum':
-enum-if-invalid.json:2: 'if' condition of 'data' member 'bar' must be a string or a list of strings
+enum-if-invalid.json:2: 'if' condition has unknown key 'val'
+Valid keys are 'all'.