Since enum is encoded as string in json, the element will be a string.
Direct conversion between EnumValueDescriptor and String is not sufficient,so this requires extracting the enum value descriptor's Name() and unboxing the custom name type back to string.
Since enum is encoded as string in json, the element will be a string. Direct conversion between EnumValueDescriptor and String is not sufficient,so this requires extracting the enum value descriptor's Name() and unboxing the custom
name
type back to string.https://github.com/carvalhorr/protoc-gen-mock/blob/master/stub/validation.go#L93