summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/flat-union-inline.json
blob: 2bdffeb248c31cbcb1b6fac611a273bc0f459417 (plain)
1
2
3
4
5
6
7
8
9
10
11
# FIXME: poor message: we require branches to be a complex type name
# TODO: should we allow anonymous inline types?
{ 'enum': 'TestEnum',
  'data': [ 'value1', 'value2' ] }
{ 'type': 'Base',
  'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
{ 'union': 'TestUnion',
  'base': { 'enum1': 'TestEnum', 'kind': 'str' },
  'discriminator': 'enum1',
  'data': { 'value1': { 'string': 'str' },
            'value2': { 'integer': 'int' } } }
OpenPOWER on IntegriCloud