aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/alternate-good.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qapi-schema/alternate-good.json')
-rw-r--r--tests/qapi-schema/alternate-good.json5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/qapi-schema/alternate-good.json b/tests/qapi-schema/alternate-good.json
index 73d0993b39..99d614f138 100644
--- a/tests/qapi-schema/alternate-good.json
+++ b/tests/qapi-schema/alternate-good.json
@@ -1,10 +1,9 @@
-# Working example of anonymous union
+# Working example of alternate
{ 'type': 'Data',
'data': { '*number': 'int', '*name': 'str' } }
{ 'enum': 'Enum',
'data': [ 'hello', 'world' ] }
-{ 'union': 'MyUnion',
- 'discriminator': {},
+{ 'alternate': 'Alt',
'data': { 'value': 'int',
'string': 'Enum',
'struct': 'Data' } }