1 // Code generated by go-swagger; DO NOT EDIT.
5 // This file was generated by the swagger tool.
6 // Editing this file might prove futile when you re-run the swagger generate command
11 strfmt "github.com/go-openapi/strfmt"
13 "github.com/go-openapi/errors"
14 "github.com/go-openapi/swag"
17 // SubscriptionResponse subscription response
18 // swagger:model SubscriptionResponse
19 type SubscriptionResponse []*SubscriptionResponseItem
21 // Validate validates this subscription response
22 func (m SubscriptionResponse) Validate(formats strfmt.Registry) error {
25 for i := 0; i < len(m); i++ {
26 if swag.IsZero(m[i]) { // not required
31 if err := m[i].Validate(formats); err != nil {
32 if ve, ok := err.(*errors.Validation); ok {
33 return ve.ValidateName(strconv.Itoa(i))
42 return errors.CompositeValidationError(res...)