Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[qemu/ar7.git] / tests / qapi-schema / union-base-no-discriminator.json
blob1409cf5c9e0c2ce851f2b917d8ce62bc292ae330
1 # we reject simple unions with a base (or flat unions without discriminator)
2 { 'struct': 'TestTypeA',
3   'data': { 'string': 'str' } }
5 { 'struct': 'TestTypeB',
6   'data': { 'integer': 'int' } }
8 { 'struct': 'Base',
9   'data': { 'string': 'str' } }
11 { 'union': 'TestUnion',
12   'base': 'Base',
13   'data': { 'value1': 'TestTypeA',
14             'value2': 'TestTypeB' } }