MichalLytek / MichalLytek/class-transformer-validator
Common decorators
- Dominant language
- TypeScript
- Stars
- 205
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
How about extending this project with some new decorators that would make use of the fact that both libraries are available?
For example: instead of using `@Type(() => Foo)` and `@IsInstance(Foo, {each: true})` and `@IsArray()` one could use a single decorator like `@IsArrayOf(Foo)` which would configure both class-transformer and class-validator with less code.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by reviewing the project's current decorator exports and how class-transformer and class-validator are combined, then define the scope for decorators such as IsArrayOf(Foo). Done should include a documented decorator API and coverage showing that transformation and validation both work together.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100