summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-incomplete-branch.json
blob: 25a411bc83e6adbc5ea9374b0f92391c8156ce99 (plain) (blame)
1
2
3
4
5
6
7
8
9
# we require all branches of the union to be covered
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'struct': 'TestTypeA',
  'data': { 'string': 'str' } }
{ 'union': 'TestUnion',
  'base': { 'type': 'TestEnum' },
  'discriminator': 'type',
  'data': { 'value1': 'TestTypeA' } }