union-string-discriminator.json (395B)
1 { 'enum': 'TestEnum', 2 'data': [ 'value1', 'value2' ] } 3 4 { 'struct': 'TestBase', 5 'data': { 'enum1': 'TestEnum', 'kind': 'str' } } 6 7 { 'struct': 'TestTypeA', 8 'data': { 'string': 'str' } } 9 10 { 'struct': 'TestTypeB', 11 'data': { 'integer': 'int' } } 12 13 { 'union': 'TestUnion', 14 'base': 'TestBase', 15 'discriminator': 'kind', 16 'data': { 'kind1': 'TestTypeA', 17 'kind2': 'TestTypeB' } }