repo.or.cz
/
qemu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
qapi: Add some union tests
[qemu.git]
/
tests
/
qapi-schema
/
alternate-good.json
blob
73d0993b39f1a1a166cda2215fff12e77d45d51d
1
# Working example of anonymous union
2
{ 'type': 'Data',
3
'data': { '*number': 'int', '*name': 'str' } }
4
{ 'enum': 'Enum',
5
'data': [ 'hello', 'world' ] }
6
{ 'union': 'MyUnion',
7
'discriminator': {},
8
'data': { 'value': 'int',
9
'string': 'Enum',
10
'struct': 'Data' } }