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

@@ -66,6 +66,8 @@ func (m *UpdateTenantSecurityRequest) validateCustomCertificates(formats strfmt.
if err := m.CustomCertificates.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("customCertificates")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("customCertificates")
}
return err
}
@@ -94,6 +96,8 @@ func (m *UpdateTenantSecurityRequest) contextValidateCustomCertificates(ctx cont
if err := m.CustomCertificates.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("customCertificates")
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("customCertificates")
}
return err
}
@@ -163,6 +167,8 @@ func (m *UpdateTenantSecurityRequestCustomCertificates) validateMinio(formats st
if err := m.Minio[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("customCertificates" + "." + "minio" + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("customCertificates" + "." + "minio" + "." + strconv.Itoa(i))
}
return err
}
@@ -195,6 +201,8 @@ func (m *UpdateTenantSecurityRequestCustomCertificates) contextValidateMinio(ctx
if err := m.Minio[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("customCertificates" + "." + "minio" + "." + strconv.Itoa(i))
} else if ce, ok := err.(*errors.CompositeError); ok {
return ce.ValidateName("customCertificates" + "." + "minio" + "." + strconv.Itoa(i))
}
return err
}