2021-03-23 10:40:00 +01:00
|
|
|
# union 'data' member with dict value is (longhand) branch
|
|
|
|
# definition, not inline complex type
|
2018-12-13 13:37:14 +01:00
|
|
|
{ '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' } } }
|