blob: 2e7f766f60aa4a516383d4bc22bba5a13b5f43eb [file] [log] [blame]
Eric Blakec9e0a792015-05-04 09:05:22 -06001# we require the discriminator to be non-optional
Eric Blake3d0c4822015-05-04 09:05:05 -06002{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
Eric Blake895a2a82015-05-04 09:05:27 -06003{ 'struct': 'Base',
Eric Blake3d0c4822015-05-04 09:05:05 -06004 'data': { '*switch': 'Enum' } }
Eric Blake895a2a82015-05-04 09:05:27 -06005{ 'struct': 'Branch', 'data': { 'name': 'str' } }
Eric Blake3d0c4822015-05-04 09:05:05 -06006{ 'union': 'MyUnion',
7 'base': 'Base',
Markus Armbrustercd346bd2019-09-14 17:34:50 +02008 'discriminator': 'switch',
Eric Blake3d0c4822015-05-04 09:05:05 -06009 'data': { 'one': 'Branch',
10 'two': 'Branch' } }