auto-form
auto-form copied to clipboard
The label and value are the same when using nativeEnum
To begin, I want to express my gratitude for the chance to propose enhancements to this project!
Description:
I've observed that when utilizing nativeEnum, the values for label and value coincide. Furthermore, I believe it would be advantageous if radio-group could also accommodate the label and value format.
Changes Made:
- Adjusted the transmission of values for
labelandvaluewithin the enum. - Enhanced
radio-groupto support thelabelandvalueformat similarly when usingnativeEnum.
Wouldn't this change break the default zod enum?
Yes I feel like this would break the zod validation as the zod enum uses the value only?
Keep in mind that zod will validate and return the enum labels, not the enum values!