1 # For now, we require the base to be a struct without variants
2 # TODO: It would be possible to allow a union as a base, as long as all
3 # permutations of QMP names exposed by base do not clash with any QMP
4 # member names added by local variants.
10 'data': [ 'value1', 'value2' ] }
14 { 'struct': 'TestTypeA',
15 'data': { 'string': 'str' } }
19 { 'struct': 'TestTypeB',
20 'data': { 'integer': 'int' } }
24 { 'union': 'UnionBase',
25 'data': { 'kind1': 'TestTypeA',
26 'kind2': 'TestTypeB' } }
30 { 'union': 'TestUnion',
32 'discriminator': 'type',
33 'data': { 'kind1': 'TestTypeA',
34 'kind2': 'TestTypeB' } }