aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-empty.json
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-09-17 16:31:32 +0200
committerMarkus Armbruster <armbru@redhat.com>2021-09-27 08:23:25 +0200
commit4e99f4b12c0e47898e8358a5c8fa54267bb16185 (patch)
treea93792619d67b2345037d7862c1ac1d31535c31b /tests/qapi-schema/flat-union-empty.json
parent76432d988b67d95006d0aa66dce2aa5999868d29 (diff)
downloadqemu-4e99f4b12c0e47898e8358a5c8fa54267bb16185.zip
qemu-4e99f4b12c0e47898e8358a5c8fa54267bb16185.tar.gz
qemu-4e99f4b12c0e47898e8358a5c8fa54267bb16185.tar.bz2
qapi: Drop simple unions
Simple unions predate flat unions. Having both complicates the QAPI schema language and the QAPI generator. We haven't been using simple unions in new code for a long time, because they are less flexible and somewhat awkward on the wire. The previous commits eliminated simple union from the tree. Now drop them from the QAPI schema language entirely, and update mentions of "flat union" to just "union". Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20210917143134.412106-22-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/flat-union-empty.json')
-rw-r--r--tests/qapi-schema/flat-union-empty.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/flat-union-empty.json b/tests/qapi-schema/flat-union-empty.json
index 83e1cc7..584ed60 100644
--- a/tests/qapi-schema/flat-union-empty.json
+++ b/tests/qapi-schema/flat-union-empty.json
@@ -1,4 +1,4 @@
-# flat union discriminator cannot be empty
+# union discriminator enum cannot be empty
{ 'enum': 'Empty', 'data': [ ] }
{ 'struct': 'Base', 'data': { 'type': 'Empty' } }
{ 'union': 'Union', 'base': 'Base', 'discriminator': 'type', 'data': { } }