Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blorenz
on Aug 14, 2024
|
parent
|
context
|
favorite
| on:
Approximating sum types in Python with Pydantic
Discriminated unions are also a wonderful part of the zod library. I use them to overload endpoints for multiple relevant operations.
roshankhan28
on Aug 14, 2024
|
next
[–]
+1 for the discriminated unions
myvoiceismypass
on Aug 14, 2024
|
prev
[–]
I used to use io-ts heavily but zod is my go to now - and it’s so ergonomic and easy for typescript newbies to pick up and grasp.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: