union-invalid-branch-key.json (388B)
1 { 'enum': 'TestEnum', 2 'data': [ 'value1', 'value2' ] } 3 4 { 'struct': 'TestBase', 5 'data': { 'enum1': 'TestEnum' } } 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': 'enum1', 16 'data': { 'value_wrong': 'TestTypeA', 17 'value2': 'TestTypeB' } }