Description
On NestJS transform pipes, implicitly the backend is casting the string to an ObjectID which can throw an error instead of returning a BadRequestException.
Updating the transform to validate the string first.
Areas
Backend
Justification
Error logs will be cleaner and the API will provide more correct feedback.
Description
On NestJS transform pipes, implicitly the backend is casting the string to an ObjectID which can throw an error instead of returning a
BadRequestException.Updating the transform to validate the string first.
Areas
Backend
Justification
Error logs will be cleaner and the API will provide more correct feedback.