Y
Hacker News
new
|
ask
|
show
|
jobs
by
pcthrowaway
1040 days ago
You can easily express constraints like these with Zod though (created by the same person who created tRPC v1)
1 comments
Cannabat
1038 days ago
Sure, if you have TS in your backend. There are OpenAPI to zod generators that can help get you started, even if they don’t give you perfect zod schemas out the gate.
link