X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fmodels%2Fxapp_config_list.go;fp=pkg%2Fmodels%2Fxapp_config_list.go;h=e57ed024a082b6725d1613e867d6b985f38acea4;hb=413abf5f6de7c1808a2dd716ef52ed586c04d8f6;hp=0000000000000000000000000000000000000000;hpb=f1ca2ba79cade327e192e691a4904fff11c88b26;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/models/xapp_config_list.go b/pkg/models/xapp_config_list.go new file mode 100644 index 0000000..e57ed02 --- /dev/null +++ b/pkg/models/xapp_config_list.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" +) + +// XappConfigList xapp config list +// swagger:model XappConfigList +type XappConfigList []*XAppConfig + +// Validate validates this xapp config list +func (m XappConfigList) 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 +}