blob: cc6bac14242f6b907463a1136e098c9b2a1cab30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
##
# @TestTypeA:
##
# we reject simple unions with a base (or flat unions without discriminator)
{ 'struct': 'TestTypeA',
'data': { 'string': 'str' } }
##
# @TestTypeB:
##
{ 'struct': 'TestTypeB',
'data': { 'integer': 'int' } }
##
# @Base:
##
{ 'struct': 'Base',
'data': { 'string': 'str' } }
##
# @TestUnion:
##
{ 'union': 'TestUnion',
'base': 'Base',
'data': { 'value1': 'TestTypeA',
'value2': 'TestTypeB' } }
|