]>
Commit | Line | Data |
---|---|---|
fd41dd4e | 1 | # we require the base to be an existing struct |
3d0c4829 EB |
2 | { 'enum': 'TestEnum', |
3 | 'data': [ 'value1', 'value2' ] } | |
895a2a80 | 4 | { 'struct': 'TestTypeA', |
3d0c4829 | 5 | 'data': { 'string': 'str' } } |
895a2a80 | 6 | { 'struct': 'TestTypeB', |
3d0c4829 EB |
7 | 'data': { 'integer': 'int' } } |
8 | { 'union': 'TestUnion', | |
28770e05 | 9 | 'base': 'any', |
3d0c4829 EB |
10 | 'discriminator': 'enum1', |
11 | 'data': { 'value1': 'TestTypeA', | |
12 | 'value2': 'TestTypeB' } } |