Closed
Description
Related Issues
- Add support for parsing boolean strings typestack/class-transformer#1686
- https://stackoverflow.com/questions/59046629/boolean-parameter-in-request-body-is-always-true-in-nestjs-api
- feature: allow casting of primitive values during transformation typestack/class-transformer#550
How to use on NestJS
npm install @takecchi/class-transformer
app.useGlobalPipes(
new ValidationPipe({
transformerPackage: require('@takecchi/class-transformer'),
transform: true,
transformOptions: { enableImplicitConversion: true },
}),
);
Metadata
Metadata
Assignees
Labels
No labels