qga/qapi-schema: Move error documentation to new "Errors" sections
[qemu/kevin.git] / tests / qapi-schema / union-invalid-union-subfield.json
blobe1639d3a963171cb4512977190d478cc92f083e9
1 # Clash between common member and union variant's variant member
2 # Base's member 'teeth' clashes with TestTypeFish's
4 { 'enum': 'TestEnum',
5   'data': [ 'animals', 'plants' ] }
7 { 'enum': 'TestAnimals',
8   'data': [ 'fish', 'birds'] }
10 { 'struct': 'TestTypeFish',
11   'data': { 'scales': 'int', 'teeth': 'int' } }
13 { 'struct': 'TestTypeBirds',
14   'data': { 'feathers': 'int' } }
16 { 'union': 'TestTypeAnimals',
17   'base': { 'atype': 'TestAnimals' },
18   'discriminator': 'atype',
19   'data': { 'fish': 'TestTypeFish',
20             'birds': 'TestTypeBirds' } }
22 { 'struct': 'TestTypePlants',
23   'data': { 'integer': 'int' } }
25 { 'union': 'TestUnion',
26   'base': { 'type': 'TestEnum',
27             'teeth': 'int' },
28   'discriminator': 'type',
29   'data': { 'animals': 'TestTypeAnimals',
30             'plants': 'TestTypePlants' } }