Context
class-transformer is used to create objects from JSON configs and handling default values properly.
Problem
Proposed Solution
- Use Zod as a way to define the schema, validate data and do the defaults handling which works without experimental/less supported processing like
reflect-metadata and decorators.
Context
class-transformeris used to create objects from JSON configs and handling default values properly.Problem
reflect-metadataand decorators for proper usage which both add complexity to the project that often caused extra work and deep analysis of the build chain and the configuration of each tool in the chain.Proposed Solution
reflect-metadataand decorators.