Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[qemu/ar7.git] / tests / qapi-schema / flat-union-no-base.json
blobffc4c6f0e6445552c2fc60dd7ddcf9b94234e4aa
1 # flat unions require a base
2 # TODO: simple unions should be able to use an enum discriminator
3 { 'struct': 'TestTypeA',
4   'data': { 'string': 'str' } }
5 { 'struct': 'TestTypeB',
6   'data': { 'integer': 'int' } }
7 { 'enum': 'Enum',
8   'data': [ 'value1', 'value2' ] }
9 { 'union': 'TestUnion',
10   'discriminator': 'Enum',
11   'data': { 'value1': 'TestTypeA',
12             'value2': 'TestTypeB' } }