Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging
[qemu/ar7.git] / tests / qapi-schema / flat-union-array-branch.json
blob0b98820a8febf619e5b9b9ad5edcf572c1fa4d2d
1 # we require flat union branches to be a struct
2 { 'enum': 'TestEnum',
3   'data': [ 'value1', 'value2' ] }
4 { 'struct': 'Base',
5   'data': { 'enum1': 'TestEnum' } }
6 { 'struct': 'TestTypeB',
7   'data': { 'integer': 'int' } }
8 { 'union': 'TestUnion',
9   'base': 'Base',
10   'discriminator': 'enum1',
11   'data': { 'value1': ['TestTypeB'],
12             'value2': 'TestTypeB' } }