]>
Commit | Line | Data |
---|---|---|
3d0c4829 | 1 | # a union base type must be a struct |
b86b05ed WX |
2 | { 'type': 'TestTypeA', |
3 | 'data': { 'string': 'str' } } | |
4 | ||
5 | { 'type': 'TestTypeB', | |
6 | 'data': { 'integer': 'int' } } | |
7 | ||
8 | { 'union': 'TestUnion', | |
3d0c4829 EB |
9 | 'base': 'int', |
10 | 'discriminator': 'int', | |
b86b05ed WX |
11 | 'data': { 'value1': 'TestTypeA', |
12 | 'value2': 'TestTypeB' } } |