1*4e99f4b1SMarkus Armbruster# we reject unions without discriminator
2895a2a80SEric Blake{ 'struct': 'TestTypeA',
33d0c4829SEric Blake  'data': { 'string': 'str' } }
43d0c4829SEric Blake
5895a2a80SEric Blake{ 'struct': 'TestTypeB',
63d0c4829SEric Blake  'data': { 'integer': 'int' } }
73d0c4829SEric Blake
8895a2a80SEric Blake{ 'struct': 'Base',
93d0c4829SEric Blake  'data': { 'string': 'str' } }
103d0c4829SEric Blake
113d0c4829SEric Blake{ 'union': 'TestUnion',
123d0c4829SEric Blake  'base': 'Base',
133d0c4829SEric Blake  'data': { 'value1': 'TestTypeA',
143d0c4829SEric Blake            'value2': 'TestTypeB' } }
15