Open JIASENG126 opened 2 months ago
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!
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 forlabel
andvalue
coincide. Furthermore, I believe it would be advantageous ifradio-group
could also accommodate thelabel
andvalue
format.Changes Made:
label
andvalue
within the enum.radio-group
to support thelabel
andvalue
format similarly when usingnativeEnum
.