union-no-base.json (316B)
1 # unions require a base 2 { 'struct': 'TestTypeA', 3 'data': { 'string': 'str' } } 4 { 'struct': 'TestTypeB', 5 'data': { 'integer': 'int' } } 6 { 'enum': 'Enum', 7 'data': [ 'value1', 'value2' ] } 8 { 'union': 'TestUnion', 9 'discriminator': 'Enum', 10 'data': { 'value1': 'TestTypeA', 11 'value2': 'TestTypeB' } }