summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/alternate-array.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/alternate-array.json')
-rw-r--r--tests/qapi-schema/alternate-array.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/qapi-schema/alternate-array.json b/tests/qapi-schema/alternate-array.json
new file mode 100644
index 0000000..25224c6
--- /dev/null
+++ b/tests/qapi-schema/alternate-array.json
@@ -0,0 +1,8 @@
+# FIXME: we should not allow array branches in anonymous unions
+# TODO: should we support this?
+{ 'type': 'One',
+ 'data': { 'name': 'str' } }
+{ 'union': 'MyUnion',
+ 'discriminator': {},
+ 'data': { 'one': 'One',
+ 'two': [ 'int' ] } }
OpenPOWER on IntegriCloud