blob: fe66b713ef4746ea375199e346d3c29662b1747f [file] [log] [blame]
Eric Blakefd41dd42015-05-04 09:05:25 -06001# we require the base to be an existing struct
Eric Blake3d0c4822015-05-04 09:05:05 -06002{ 'enum': 'TestEnum',
3 'data': [ 'value1', 'value2' ] }
Eric Blake895a2a82015-05-04 09:05:27 -06004{ 'struct': 'TestTypeA',
Eric Blake3d0c4822015-05-04 09:05:05 -06005 'data': { 'string': 'str' } }
Eric Blake895a2a82015-05-04 09:05:27 -06006{ 'struct': 'TestTypeB',
Eric Blake3d0c4822015-05-04 09:05:05 -06007 'data': { 'integer': 'int' } }
8{ 'union': 'TestUnion',
Markus Armbruster28770e02015-09-16 13:06:24 +02009 'base': 'any',
Eric Blake3d0c4822015-05-04 09:05:05 -060010 'discriminator': 'enum1',
11 'data': { 'value1': 'TestTypeA',
12 'value2': 'TestTypeB' } }