xref: /openbmc/qemu/tests/qapi-schema/union-invalid-discriminator.json (revision 710320137099b8d86cedb4f58de2455acd58cbde)
1{ 'enum': 'TestEnum',
2  'data': [ 'value1', 'value2' ] }
3
4{ 'struct': 'TestTypeA',
5  'data': { 'string': 'str' } }
6
7{ 'struct': 'TestTypeB',
8  'data': { 'integer': 'int' } }
9
10{ 'union': 'TestUnion',
11  'base': { 'type-tag': 'TestEnum' },
12  'discriminator': 'type_tag',
13  'data': { 'value1': 'TestTypeA',
14            'value2': 'TestTypeB' } }
15