mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
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:
parent
27451a5ee6
commit
56c9c7a804
18 changed files with 954 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue