fix: Boolean Type Transformation goes wrong #711
Labels
status: needs triage
Issues which needs to be reproduced to be verified report.
type: fix
Issues describing a broken feature.
Description
Using
@Type(() => Boolean
does not work as advertised here.Minimal code-snippet showcasing the problem
I have a minimal app to show the whole scenario https://github.com/somehowchris/nestjs-query-validation-failing
Doing:
Should transform "false" to the type Boolean with false
Which again should result in the return body
but results in this
Expected behavior
The boolean should be transformed with its actual value.
Actual behavior
As shown the boolean value is true which should be false.
The text was updated successfully, but these errors were encountered: