Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
When a Ruby struct is generated, if the struct has fields that are of enumerated types, it is converted into an i32 field, and no trace of the enumerated type is recorded. I propose we add a new key to the FIELDS entries, :enum_class, that contains the class constant for the enumerated type. This way, you can reflectively determine both that the field is of an enumerated type and which type it is.
Attachments
Attachments
Issue Links
- is related to
-
THRIFT-224 Validate method should check that enum types are assigned valid values
- Closed