Update swagger generated files with latest swagger version (#3094)
This commit is contained in:
@@ -99,6 +99,11 @@ func (m *RewindResponse) contextValidateObjects(ctx context.Context, formats str
|
||||
for i := 0; i < len(m.Objects); i++ {
|
||||
|
||||
if m.Objects[i] != nil {
|
||||
|
||||
if swag.IsZero(m.Objects[i]) { // not required
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := m.Objects[i].ContextValidate(ctx, formats); err != nil {
|
||||
if ve, ok := err.(*errors.Validation); ok {
|
||||
return ve.ValidateName("objects" + "." + strconv.Itoa(i))
|
||||
|
||||
Reference in New Issue
Block a user