summary refs log tree commit diff stats
path: root/tests/qapi-schema/union-invalid-union-subtype.err
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2023-04-20 11:26:19 +0100
committerMarkus Armbruster <armbru@redhat.com>2023-04-26 07:52:45 +0200
commita17dbc4b79a28ffb9511f192474ffefd88214cde (patch)
tree1a4fde556d2f94e3e908f4368ef9862d34340ef9 /tests/qapi-schema/union-invalid-union-subtype.err
parent1e148b545fccc2a83a57269849de9a21e11c17da (diff)
downloadfocaccia-qemu-a17dbc4b79a28ffb9511f192474ffefd88214cde.tar.gz
focaccia-qemu-a17dbc4b79a28ffb9511f192474ffefd88214cde.zip
qapi: allow unions to contain further unions
This extends the QAPI schema validation to permit unions inside unions,
provided the checks for clashing fields pass.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230420102619.348173-4-berrange@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/union-invalid-union-subtype.err')
-rw-r--r--tests/qapi-schema/union-invalid-union-subtype.err2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qapi-schema/union-invalid-union-subtype.err b/tests/qapi-schema/union-invalid-union-subtype.err
new file mode 100644
index 0000000000..3538dc2e70
--- /dev/null
+++ b/tests/qapi-schema/union-invalid-union-subtype.err
@@ -0,0 +1,2 @@
+union-invalid-union-subtype.json: In union 'TestUnion':
+union-invalid-union-subtype.json:25: base member 'type' of type 'TestTypeA' collides with base member 'type'