summaryrefslogblamecommitdiffstats
path: root/tests/qapi-schema/flat-union-discriminator-bad-name.json
blob: 3ae8c06a8992e4880ac55fcb68f63c3e4ae4f82f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                             








                                                 
# discriminator '*switch' isn't a member of base, 'switch' is
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
{ 'struct': 'Base',
  'data': { '*switch': 'Enum' } }
{ 'struct': 'Branch', 'data': { 'name': 'str' } }
{ 'union': 'MyUnion',
  'base': 'Base',
  'discriminator': '*switch',
  'data': { 'one': 'Branch',
            'two': 'Branch' } }