Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion oapi_validate_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ paths:
}

errorHandlerFunc := func(w http.ResponseWriter, message string, statusCode int) {
fmt.Printf("ErrorHandler: An HTTP %d was returned by the middleware with error message: request body has an error: value is required but missing\n", statusCode)
fmt.Printf("ErrorHandler: An HTTP %d was returned by the middleware with error message: %s\n", statusCode, message)
http.Error(w, "This was rewritten by the ErrorHandler", statusCode)
}

Expand Down