Skip to content

Commit 788fde5

Browse files
Nivldaveshanley
authored andcommitted
more ParameterValidationPath changes
1 parent 215edc0 commit 788fde5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

parameters/cookie_parameters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (v *paramValidator) ValidateCookieParams(request *http.Request) (bool, []*e
3030
func (v *paramValidator) ValidateCookieParamsWithPathItem(request *http.Request, pathItem *v3.PathItem, pathValue string) (bool, []*errors.ValidationError) {
3131
if pathItem == nil {
3232
return false, []*errors.ValidationError{{
33-
ValidationType: helpers.ParameterValidationPath,
33+
ValidationType: helpers.PathValidation,
3434
ValidationSubType: helpers.ValidationMissing,
3535
Message: fmt.Sprintf("%s Path '%s' not found", request.Method, request.URL.Path),
3636
Reason: fmt.Sprintf("The %s request contains a path of '%s' "+

parameters/header_parameters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (v *paramValidator) ValidateHeaderParams(request *http.Request) (bool, []*e
3131
func (v *paramValidator) ValidateHeaderParamsWithPathItem(request *http.Request, pathItem *v3.PathItem, pathValue string) (bool, []*errors.ValidationError) {
3232
if pathItem == nil {
3333
return false, []*errors.ValidationError{{
34-
ValidationType: helpers.ParameterValidationPath,
34+
ValidationType: helpers.PathValidation,
3535
ValidationSubType: helpers.ValidationMissing,
3636
Message: fmt.Sprintf("%s Path '%s' not found", request.Method, request.URL.Path),
3737
Reason: fmt.Sprintf("The %s request contains a path of '%s' "+

0 commit comments

Comments
 (0)