]> Git Repo - qemu.git/blobdiff - tests/qapi-schema/flat-union-no-base.json
Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20160720-1' into staging
[qemu.git] / tests / qapi-schema / flat-union-no-base.json
index 50f267323b209b4a9153ad62ca936dc4e198a4c7..ffc4c6f0e6445552c2fc60dd7ddcf9b94234e4aa 100644 (file)
@@ -1,10 +1,12 @@
-{ 'type': 'TestTypeA',
+# flat unions require a base
+# TODO: simple unions should be able to use an enum discriminator
+{ 'struct': 'TestTypeA',
   'data': { 'string': 'str' } }
-
-{ 'type': 'TestTypeB',
+{ 'struct': 'TestTypeB',
   'data': { 'integer': 'int' } }
-
+{ 'enum': 'Enum',
+  'data': [ 'value1', 'value2' ] }
 { 'union': 'TestUnion',
-  'discriminator': 'enum1',
+  'discriminator': 'Enum',
   'data': { 'value1': 'TestTypeA',
             'value2': 'TestTypeB' } }
This page took 0.023869 seconds and 4 git commands to generate.