-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
This is cool — how does it compare to zod? https://github.com/colinhacks/zod
-
Similar to https://github.com/serafin-labs/schema-builder
-
https://quicktype.io/ might be a solution for that.
-
typescript-is. This uses a compile-time transformer to generate code for type-checking. You'll need to use ttypescript instead of typescript to compile your code (I recommend setting this up with ts-patch). It won't work if your build pipeline is actually using something like esbuild or Babel to transpile TS->JS.
-
class-validator + class-transformer. Your build pipeline needs to support the TC39 decorators proposal (the TypeScript compiler has this built-in).
-
class-transformer
Decorator-based transformation, serialization, and deserialization between objects and classes.
class-validator + class-transformer. Your build pipeline needs to support the TC39 decorators proposal (the TypeScript compiler has this built-in).
-
Take a look at this repo for an example of how to do that: https://github.com/Q42/openapi-typescript-validator