Closed as not planned
Description
Description
@IsBoolean
alway transforms the value of a boolean query param to true
even if the transformOptions.enableImplicitConversion.true
is set as true
Definition of a boolean query parameter is as below.
Minimal code-snippet showcasing the problem
@IsBoolean()
@IsOptional()
@Transform((object) => {
console.log(object);
return object.value;
})
isMuted?: boolean;
Expected behavior
// For query param value as 'true'
{
value: true,
key: 'isMuted',
object: {isMuted: 'true', ...}
...
}
{
value: false,
key: 'isMuted',
object: {isMuted: 'fale', ...}
...
}
Actual behavior
