X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fmodels%2Fsubscription_response.go;fp=pkg%2Fmodels%2Fsubscription_response.go;h=865717769f144d19784277045bbbdad634592d21;hb=429da19d53224135082f8b6f65470ae3ee8df176;hp=0000000000000000000000000000000000000000;hpb=e0948fe8b755b4d752ef9da4a46246cf3951c9dc;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/models/subscription_response.go b/pkg/models/subscription_response.go new file mode 100644 index 0000000..8657177 --- /dev/null +++ b/pkg/models/subscription_response.go @@ -0,0 +1,45 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "strconv" + + strfmt "github.com/go-openapi/strfmt" + + "github.com/go-openapi/errors" + "github.com/go-openapi/swag" +) + +// SubscriptionResponse subscription response +// swagger:model SubscriptionResponse +type SubscriptionResponse []*SubscriptionResponseItem + +// Validate validates this subscription response +func (m SubscriptionResponse) Validate(formats strfmt.Registry) error { + var res []error + + for i := 0; i < len(m); i++ { + if swag.IsZero(m[i]) { // not required + continue + } + + if m[i] != nil { + if err := m[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName(strconv.Itoa(i)) + } + return err + } + } + + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +}