You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ Register as a plugin, optional providing any of the following options:
23
23
24
24
-`handle404Errors`: If to set an handler via `setNotFoundHandler`.
25
25
-`hideUnhandledErrors`: If to hide unhandled server errors or returning to the client including stack information. Default is to hide errors when `NODE_ENV` environment variable is `production`.
26
+
-`use422ForValidationErrors`: If to return `422` (`Unprocessable Entity`) instead of `400` (`Bad Request`) in case of validation errors.
26
27
-`convertValidationErrors`: Convert validation errors to a structured human readable object. Default is `true`.
27
28
-`convertResponsesValidationErrors`: Convert response validation errors to a structured human readable object. Default is to enable when `NODE_ENV` environment variable is different from `production`.
28
29
-`allowUndeclaredResponses`: When converting response validation errors, allow responses that have no schema defined instead of throwing an error.
0 commit comments