class-transformer icon indicating copy to clipboard operation
class-transformer copied to clipboard

Decorator-based transformation, serialization, and deserialization between objects and classes.

Results 278 class-transformer issues
Sort by recently updated
recently updated
newest added

Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.22.0. Release notes Sourced from eslint's releases. v8.22.0 Features 2b97607 feat: Implement caching for FlatESLint (#16190) (Nicholas C. Zakas) fd5d3d3 feat: add methodsIgnorePattern option to...

dependencies

I wan't to rename property when it will be returned to client, for example I have `export class A { @Transform(({value})=>4) t: string; }` I need to rename t when...

type: question

### Description Strategy 'exposeAll' does not work as expected with true excludeExtraneousValues flag. Actual behaviour is as all properties were not exposed. **Minimal code-snippet showcasing the problem** ``` class Dog...

type: fix
status: needs triage

### Description Using `@Type`, `@Transform` and `@Expose` decorators in a linked package (`npm link` in development environment) and extending classes from the linked package nullifies the decorators on the extended...

type: fix
status: needs triage

### Description **Minimal code-snippet showcasing the problem** envs ``` "class-transformer": "^0.5.1", "reflect-metadata": "^0.1.13", "typescript": "^4.6.3", "ts-node": "^10.9.1", ``` tsconfig.json ```json { "compileOnSave": true, "compilerOptions": { "target": "es2017", "lib": ["es2017"], "experimentalDecorators":...

type: fix
status: needs triage

I am trying to build a dynamic SQL query language and have a JSON like this for representing where clause ``` { "filter": { _and: [ { rating: { _gte:...

type: question

**I was trying to...** Trigger validation on a single nested object using discriminators. **The problem:** Validation works on an array of objects but not on a single object: ```typescript @Type(()...

type: question

Here is an option for improving the polymorphism in class-transformer. Closes #51. This PR extends the existing `@Type()` decorator to be usable at class level. This allows the user to...

type: feature

**I was trying to...** I am using Typescript + NestJs + class-transformers for my response-DTOs. I use some of the created backend type definitions in the frontend project. **The problem:**...

type: question

### Description If tsconfig.json has `"target": "ES2022"` or `"target": "ESNext"`, the results are different from what have been mentioned in the documentation. **Minimal code-snippet showcasing the problem** This very simple...

type: fix
status: needs triage