qemu-e2k/tests/qapi-schema/union-unknown.json

7 lines
208 B
JSON
Raw Normal View History

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