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
I am trying to customize messages in nestjs response, I am using decorators in DTOs, and want to get min constraint I pass to @Min (this is just an example). My DTO is something like this:
I am trying to customize messages in nestjs response, I am using decorators in DTOs, and want to get min constraint I pass to
@Min
(this is just an example). My DTO is something like this:in nestjs I am getting the validation error that comes from class-validator, but I get only "validation.min" as the constraint:
in the console.log(errors), I get something like this:
As you see I get
validation.min
(the message) I passed as the constraint, the question is how can I get the value (here is 1) I passed to@Min
?The text was updated successfully, but these errors were encountered: