You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to the new feature "support nested body params for CompositeError" from master (166b853) the generated code produces the following error:
"github.com/go-openapi/errors".CompositeError has no field or method ValidateName
I have run go get -u -f ./... and also checked that github.com/go-openapi/errors is the latest version.
The problematic code is the following:
if m.Field != nil {
if err := m.Field.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("field")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("field") // <- ERROR HERE
}
return err
}
}
The type *errors.CompositeError has no ValidateName() method.