summaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-incomplete-branch.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/flat-union-incomplete-branch.json')
-rw-r--r--tests/qapi-schema/flat-union-incomplete-branch.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qapi-schema/flat-union-incomplete-branch.json b/tests/qapi-schema/flat-union-incomplete-branch.json
new file mode 100644
index 000000000..25a411bc8
--- /dev/null
+++ b/tests/qapi-schema/flat-union-incomplete-branch.json
@@ -0,0 +1,9 @@
+# we require all branches of the union to be covered
+{ 'enum': 'TestEnum',
+ 'data': [ 'value1', 'value2' ] }
+{ 'struct': 'TestTypeA',
+ 'data': { 'string': 'str' } }
+{ 'union': 'TestUnion',
+ 'base': { 'type': 'TestEnum' },
+ 'discriminator': 'type',
+ 'data': { 'value1': 'TestTypeA' } }