summaryrefslogtreecommitdiffstats
path: root/qemu/tests/qapi-schema/flat-union-base-union.json
diff options
context:
space:
mode:
Diffstat (limited to 'qemu/tests/qapi-schema/flat-union-base-union.json')
-rw-r--r--qemu/tests/qapi-schema/flat-union-base-union.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/qemu/tests/qapi-schema/flat-union-base-union.json b/qemu/tests/qapi-schema/flat-union-base-union.json
index 6a8ea687a..98b4eba18 100644
--- a/qemu/tests/qapi-schema/flat-union-base-union.json
+++ b/qemu/tests/qapi-schema/flat-union-base-union.json
@@ -1,4 +1,7 @@
-# we require the base to be a struct
+# For now, we require the base to be a struct without variants
+# TODO: It would be possible to allow a union as a base, as long as all
+# permutations of QMP names exposed by base do not clash with any QMP
+# member names added by local variants.
{ 'enum': 'TestEnum',
'data': [ 'value1', 'value2' ] }
{ 'struct': 'TestTypeA',