diff options
author | Markus Armbruster <armbru@redhat.com> | 2021-09-17 16:31:32 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2021-09-27 08:23:25 +0200 |
commit | 4e99f4b12c0e47898e8358a5c8fa54267bb16185 (patch) | |
tree | a93792619d67b2345037d7862c1ac1d31535c31b /tests/qapi-schema/union-base-no-discriminator.json | |
parent | 76432d988b67d95006d0aa66dce2aa5999868d29 (diff) |
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/union-base-no-discriminator.json')
-rw-r--r-- | tests/qapi-schema/union-base-no-discriminator.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/union-base-no-discriminator.json b/tests/qapi-schema/union-base-no-discriminator.json index 1409cf5c9e..2e7cae9b22 100644 --- a/tests/qapi-schema/union-base-no-discriminator.json +++ b/tests/qapi-schema/union-base-no-discriminator.json @@ -1,4 +1,4 @@ -# we reject simple unions with a base (or flat unions without discriminator) +# we reject unions without discriminator { 'struct': 'TestTypeA', 'data': { 'string': 'str' } } |