Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[qemu/ar7.git] / tests / qapi-schema / flat-union-string-discriminator.json
blob8af60333b60f4f9ed89e8a5c3bab9542e0e9fb12
1 { 'enum': 'TestEnum',
2   'data': [ 'value1', 'value2' ] }
4 { 'struct': 'TestBase',
5   'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
7 { 'struct': 'TestTypeA',
8   'data': { 'string': 'str' } }
10 { 'struct': 'TestTypeB',
11   'data': { 'integer': 'int' } }
13 { 'union': 'TestUnion',
14   'base': 'TestBase',
15   'discriminator': 'kind',
16   'data': { 'kind1': 'TestTypeA',
17             'kind2': 'TestTypeB' } }