summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-invalid-discriminator.json
blob: de86cf076039d92ba2b7854390f8ed0a09aa2e8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# FIXME error message shows base as OrderedDict
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }

{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }

{ 'struct': 'TestTypeB',
  'data': { 'integer': 'int' } }

{ 'union': 'TestUnion',
  'base': { 'enum1': 'TestEnum' },
  'discriminator': 'enum_wrong',
  'data': { 'value1': 'TestTypeA',
            'value2': 'TestTypeB' } }