8b3b3a16df
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210917143134.412106-23-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com
11 lines
329 B
JSON
11 lines
329 B
JSON
# we require the discriminator to be non-optional
|
|
{ 'enum': 'Enum', 'data': [ 'one', 'two' ] }
|
|
{ 'struct': 'Base',
|
|
'data': { '*switch': 'Enum' } }
|
|
{ 'struct': 'Branch', 'data': { 'name': 'str' } }
|
|
{ 'union': 'MyUnion',
|
|
'base': 'Base',
|
|
'discriminator': 'switch',
|
|
'data': { 'one': 'Branch',
|
|
'two': 'Branch' } }
|