After looking and debug around in our project, I found you guys left TODO for EnumSchema validate function and return TRUE T_T
This TRUE produces a lot of panic in our service.
So I finish the validate function for our own production env.
I did the follow thins:
check if it is a struct
check if it contains index field
check if the field is in range(0<=index<len(enumSchema.Symbols))
After looking and debug around in our project, I found you guys left TODO for EnumSchema validate function and return TRUE T_T This TRUE produces a lot of panic in our service. So I finish the validate function for our own production env. I did the follow thins: