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.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func performRequestValidationForErrorHandlerWithOpts(next http.Handler, w http.R
// we don't want to crash the server, so handle the unexpected error.
// return http.StatusInternalServerError,
theErr = fmt.Errorf("error validating route: %w", e)
errOpts.StatusCode = http.StatusUnauthorized
errOpts.StatusCode = http.StatusInternalServerError
}

options.ErrorHandlerWithOpts(r.Context(), theErr, w, r, errOpts)
Expand Down