We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c74ae commit 8176ac1Copy full SHA for 8176ac1
binary.go
@@ -153,16 +153,13 @@ func (c *codec) newOperation(iface interface{}) (
153
return
154
}
155
156
- operation.formatName = reflection.String()
157
-
158
operation.valueReflection = reflect.ValueOf(iface).Elem()
159
160
161
162
163
type codecOperation struct {
164
format *formatMetadata
165
- formatName string
166
valueReflection reflect.Value
167
168
@@ -179,7 +176,9 @@ func (c *codecOperation) unmarshal(bytes []byte) (e error) {
179
176
uint(len(bytes)),
180
177
)
181
178
182
- e.(validation.FormatError).SetFormatName(c.formatName)
+ e.(validation.FormatError).SetFormatName(
+ c.valueReflection.Type().String(),
+ )
183
184
185
0 commit comments