Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support choice types as enum #798

Open
SimonCockx opened this issue Jul 25, 2024 · 0 comments
Open

Support choice types as enum #798

SimonCockx opened this issue Jul 25, 2024 · 0 comments
Labels
enhancement New feature or request subject: syntax This issue is about the syntax of Rosetta

Comments

@SimonCockx
Copy link
Contributor

See part 4 of #747 (comment).

4. Killer-feature: add support for using choice types as enum.

E.g.,

choice Asset as-enum AssetTypeEnum:
  ...

type Underlier:
  assetType AssetTypeEnum (1..1)

In an expression:

if underlier -> assetType = AssetTypeEnum -> Basket
then ...
@SimonCockx SimonCockx added enhancement New feature or request subject: syntax This issue is about the syntax of Rosetta labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request subject: syntax This issue is about the syntax of Rosetta
Projects
None yet
Development

No branches or pull requests

1 participant