summaryrefslogblamecommitdiffstats
path: root/tests/qapi-schema/union-unknown.json
blob: 4736f1ab0849944302da4295f79a676e706e2e22 (plain) (tree)
1
2
3
4
5
6
                                               
                                         
                   


                                        
# we reject a union with unknown type in branch
{ 'enum': 'Enum', 'data': [ 'unknown' ] }
{ 'union': 'Union',
  'base': { 'type': 'Enum' },
  'discriminator': 'type',
  'data': { 'unknown': 'MissingType' } }