Update go-swagger and go-openapi dependencies (#1385)

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2022-01-12 18:59:14 -08:00
committed by GitHub
parent 1871f2bf9e
commit d269cfcd31
82 changed files with 641 additions and 27 deletions

View File

@@ -89,6 +89,8 @@ func (m *ServerProperties) validateDrives(formats strfmt.Registry) error {
if err := m.Drives[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("drives" + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("drives" + "." + strconv.Itoa(i))
}
return err
}
@@ -121,6 +123,8 @@ func (m *ServerProperties) contextValidateDrives(ctx context.Context, formats st
if err := m.Drives[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("drives" + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("drives" + "." + strconv.Itoa(i))
}
return err
}