]>
Commit | Line | Data |
---|---|---|
3d0c4829 EB |
1 | # FIXME: we should require the discriminator to be non-optional |
2 | { 'enum': 'Enum', 'data': [ 'one', 'two' ] } | |
3 | { 'type': 'Base', | |
4 | 'data': { '*switch': 'Enum' } } | |
5 | { 'type': 'Branch', 'data': { 'name': 'str' } } | |
6 | { 'union': 'MyUnion', | |
7 | 'base': 'Base', | |
8 | 'discriminator': '*switch', | |
9 | 'data': { 'one': 'Branch', | |
10 | 'two': 'Branch' } } |