We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making a GET request to /api/non-class-events?acyr=2022/ (note the slash at the end) raises a 500 server error.
GET
/api/non-class-events?acyr=2022/
A validation error should be raised (since '2022/' is not a numeric value)
'2022/'
A 500 error was returned
Proposed solution is to pass ParseIntPipe as the second argument to @Query().
ParseIntPipe
@Query()
- @Query('acyr') acyr?: number + @Query('acyr', ParseIntPipe) acyr?: number
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Making a
GET
request to/api/non-class-events?acyr=2022/
(note the slash at the end) raises a 500 server error.To Reproduce
GET
request to/api/non-class-events?acyr=2022/
Expected Behavior
A validation error should be raised (since
'2022/'
is not a numeric value)Actual Behavior
A 500 error was returned
Proposed solution is to pass
ParseIntPipe
as the second argument to@Query()
.The text was updated successfully, but these errors were encountered: