qapi: add qapi2texi script
[qemu/ar7.git] / tests / qapi-schema / flat-union-incomplete-branch.json
blobdea03775c7df81f288ff51dc1cde7236e381d8d3
1 # we require all branches of the union to be covered
3 ##
4 # @TestEnum:
5 ##
6 { 'enum': 'TestEnum',
7   'data': [ 'value1', 'value2' ] }
8 ##
9 # @TestTypeA:
11 { 'struct': 'TestTypeA',
12   'data': { 'string': 'str' } }
14 # @TestUnion:
16 { 'union': 'TestUnion',
17   'base': { 'type': 'TestEnum' },
18   'discriminator': 'type',
19   'data': { 'value1': 'TestTypeA' } }