aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/alternate-good.json
blob: 73d0993b39f1a1a166cda2215fff12e77d45d51d (plain)
1
2
3
4
5
6
7
8
9
10
# Working example of anonymous union
{ 'type': 'Data',
  'data': { '*number': 'int', '*name': 'str' } }
{ 'enum': 'Enum',
  'data': [ 'hello', 'world' ] }
{ 'union': 'MyUnion',
  'discriminator': {},
  'data': { 'value': 'int',
            'string': 'Enum',
            'struct': 'Data' } }