aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/alternate-conflict-dict.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/alternate-conflict-dict.json')
-rw-r--r--tests/qapi-schema/alternate-conflict-dict.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qapi-schema/alternate-conflict-dict.json b/tests/qapi-schema/alternate-conflict-dict.json
new file mode 100644
index 0000000000..d2ed9de272
--- /dev/null
+++ b/tests/qapi-schema/alternate-conflict-dict.json
@@ -0,0 +1,9 @@
+# FIXME: we should reject anonymous unions with multiple object branches
+{ 'type': 'One',
+ 'data': { 'name': 'str' } }
+{ 'type': 'Two',
+ 'data': { 'value': 'int' } }
+{ 'union': 'MyUnion',
+ 'discriminator': {},
+ 'data': { 'one': 'One',
+ 'two': 'Two' } }