diff options
Diffstat (limited to 'qemu/tests/qapi-schema/alternate-good.json')
-rw-r--r-- | qemu/tests/qapi-schema/alternate-good.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qemu/tests/qapi-schema/alternate-good.json b/qemu/tests/qapi-schema/alternate-good.json new file mode 100644 index 000000000..33717704c --- /dev/null +++ b/qemu/tests/qapi-schema/alternate-good.json @@ -0,0 +1,9 @@ +# Working example of alternate +{ 'struct': 'Data', + 'data': { '*number': 'int', '*name': 'str' } } +{ 'enum': 'Enum', + 'data': [ 'hello', 'world' ] } +{ 'alternate': 'Alt', + 'data': { 'value': 'int', + 'string': 'Enum', + 'struct': 'Data' } } |