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
Right now, the QueryParameterValueResolver throws a NotFoundHttpException if the parameter could not be mapped successfully because of filter settings or providing a wrong value for a backed enum.
We would like to return "400 Bad Request" responses instead. Ideally this would be a parameter in the MapQueryParameter attribute same as for the MapQueryString or MapRequestPayload attributes where this already exists in $validationFailedStatusCode = Response::HTTP_NOT_FOUND.
Description
Right now, the
QueryParameterValueResolver
throws aNotFoundHttpException
if the parameter could not be mapped successfully because of filter settings or providing a wrong value for a backed enum.We would like to return "400 Bad Request" responses instead. Ideally this would be a parameter in the
MapQueryParameter
attribute same as for theMapQueryString
orMapRequestPayload
attributes where this already exists in$validationFailedStatusCode = Response::HTTP_NOT_FOUND
.Example
Before:
After:
The text was updated successfully, but these errors were encountered: