X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_all_instances_for_type_parameters.go;fp=pkg%2Frestapi%2Foperations%2Fa1_mediator%2Fa1_controller_get_all_instances_for_type_parameters.go;h=1a860708b2ece6205967c6cd193141a7a8c3aaf5;hb=5152bd39551f19139752d89a795327ca9dd189db;hp=6a4e4b6b55318b023054905b0009f9f3ffd424f2;hpb=272fb5b36779f68a944ca317fa6a6159da0128e3;p=ric-plt%2Fa1.git diff --git a/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_parameters.go b/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_parameters.go index 6a4e4b6..1a86070 100644 --- a/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_parameters.go +++ b/pkg/restapi/operations/a1_mediator/a1_controller_get_all_instances_for_type_parameters.go @@ -36,7 +36,8 @@ import ( ) // NewA1ControllerGetAllInstancesForTypeParams creates a new A1ControllerGetAllInstancesForTypeParams object -// no default values defined in spec. +// +// There are no default values defined in the spec. func NewA1ControllerGetAllInstancesForTypeParams() A1ControllerGetAllInstancesForTypeParams { return A1ControllerGetAllInstancesForTypeParams{} @@ -74,7 +75,6 @@ func (o *A1ControllerGetAllInstancesForTypeParams) BindRequest(r *http.Request, if err := o.bindPolicyTypeID(rPolicyTypeID, rhkPolicyTypeID, route.Formats); err != nil { res = append(res, err) } - if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -107,11 +107,11 @@ func (o *A1ControllerGetAllInstancesForTypeParams) bindPolicyTypeID(rawData []st // validatePolicyTypeID carries on validations for parameter PolicyTypeID func (o *A1ControllerGetAllInstancesForTypeParams) validatePolicyTypeID(formats strfmt.Registry) error { - if err := validate.MinimumInt("policy_type_id", "path", int64(o.PolicyTypeID), 1, false); err != nil { + if err := validate.MinimumInt("policy_type_id", "path", o.PolicyTypeID, 1, false); err != nil { return err } - if err := validate.MaximumInt("policy_type_id", "path", int64(o.PolicyTypeID), 2.147483647e+09, false); err != nil { + if err := validate.MaximumInt("policy_type_id", "path", o.PolicyTypeID, 2.147483647e+09, false); err != nil { return err }