repo.or.cz
/
qemu
/
ar7.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge remote-tracking branch 'remotes/jnsnow/tags/bitmaps-pull-request' into staging
[qemu/ar7.git]
/
tests
/
qapi-schema
/
flat-union-optional-discriminator.json
blob
08a8f7ef8bcbe76e566387ab0a0cab5136d4efed
1
# we require the discriminator to be non-optional
2
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
3
{ 'struct': 'Base',
4
'data': { '*switch': 'Enum' } }
5
{ 'struct': 'Branch', 'data': { 'name': 'str' } }
6
{ 'union': 'MyUnion',
7
'base': 'Base',
8
'discriminator': '*switch',
9
'data': { 'one': 'Branch',
10
'two': 'Branch' } }