aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-inline-invalid-dict.json
blob: 1779712795c73a2279c9e6f5c9e371bdf404526b (plain)
1
2
3
4
5
6
7
8
9
10
11
# union 'data' member with dict value is (longhand) branch
# definition, not inline complex type
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'struct': 'Base',
  'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
{ 'union': 'TestUnion',
  'base': 'Base',
  'discriminator': 'enum1',
  'data': { 'value1': { 'string': 'str' },
            'value2': { 'integer': 'int' } } }