2015-05-04 17:05:25 +02:00
|
|
|
# we require branches to be a struct name
|
2015-09-30 00:21:07 +02:00
|
|
|
# TODO: should we allow anonymous inline branch types?
|
2015-05-04 17:05:05 +02:00
|
|
|
{ 'enum': 'TestEnum',
|
|
|
|
'data': [ 'value1', 'value2' ] }
|
2015-05-04 17:05:27 +02:00
|
|
|
{ 'struct': 'Base',
|
2015-05-04 17:05:05 +02:00
|
|
|
'data': { 'enum1': 'TestEnum', 'kind': 'str' } }
|
|
|
|
{ 'union': 'TestUnion',
|
2015-09-30 00:21:07 +02:00
|
|
|
'base': 'Base',
|
2015-05-04 17:05:05 +02:00
|
|
|
'discriminator': 'enum1',
|
2018-12-13 13:37:14 +01:00
|
|
|
'data': { 'value1': { 'type': {} },
|
2015-05-04 17:05:05 +02:00
|
|
|
'value2': { 'integer': 'int' } } }
|