aboutsummaryrefslogtreecommitdiff
path: root/tests/qapi-schema/flat-union-optional-discriminator.out
blob: bb7db0090208a51dcd4c7e2423e0415aa47081d0 (plain)
1
2
3
4
5
6
7
[OrderedDict([('enum', 'Enum'), ('data', ['one', 'two'])]),
 OrderedDict([('type', 'Base'), ('data', OrderedDict([('*switch', 'Enum')]))]),
 OrderedDict([('type', 'Branch'), ('data', OrderedDict([('name', 'str')]))]),
 OrderedDict([('union', 'MyUnion'), ('base', 'Base'), ('discriminator', '*switch'), ('data', OrderedDict([('one', 'Branch'), ('two', 'Branch')]))])]
[{'enum_name': 'Enum', 'enum_values': ['one', 'two']}]
[OrderedDict([('type', 'Base'), ('data', OrderedDict([('*switch', 'Enum')]))]),
 OrderedDict([('type', 'Branch'), ('data', OrderedDict([('name', 'str')]))])]