-
Notifications
You must be signed in to change notification settings - Fork 70
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
When parsing, there is no way to get int value of an enum #7
Comments
I've come across this myself. I like #2, but with the following options: a) enums as ints |
I've done #3 for one enum:
|
Hey, I've created and open sourced a convenience wrapper for this. Maybe there is a path that we can merge it into this module? I don't mind. |
See #19 for another field type which needs some form of 'retrieval type parameterisation'. |
Right now when I parse a message in node, the enum value is set to string. However, string is not an efficient representation of enum. It takes longer to compare, it takes more space in the database, etc.
Possible solutions:
Solutions #2 + #3 are likely to generate the nicest and most efficient server-side code.
The text was updated successfully, but these errors were encountered: