Re-generate capi models (#3260)

* add centralapi_swagger.yaml

* remove nullable to avoid generate error

* re-generate pkg/modelscapi

* update go-swagger to 0.31.0
This commit is contained in:
mmetc 2024-10-02 16:44:13 +02:00 committed by GitHub
parent 27451a5ee6
commit 56c9c7a804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 954 additions and 1 deletions

View file

@ -144,6 +144,11 @@ func (m *GetDecisionsStreamResponse) contextValidateDeleted(ctx context.Context,
func (m *GetDecisionsStreamResponse) contextValidateLinks(ctx context.Context, formats strfmt.Registry) error {
if m.Links != nil {
if swag.IsZero(m.Links) { // not required
return nil
}
if err := m.Links.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("links")