Skip to content

Commit

Permalink
removed test code
Browse files Browse the repository at this point in the history
  • Loading branch information
daveshanley committed Sep 29, 2024
1 parent 2a7f83d commit 3258e8c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions requests/validate_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,7 @@ func ValidateRequestSchema(
})
return false, validationErrors
}
jsch, err := compiler.Compile("requestBody.json")
if err != nil {
validationErrors = append(validationErrors, &errors.ValidationError{
ValidationType: helpers.RequestBodyValidation,
ValidationSubType: helpers.Schema,
Message: err.Error(),
Reason: "Failed to compile the request body for validation.",
Context: string(renderedSchema),
})
return false, validationErrors
}
jsch, _ := compiler.Compile("requestBody.json")

// validate the object against the schema
scErrs := jsch.Validate(decodedObj)
Expand Down

0 comments on commit 3258e8c

Please sign in to comment.