A Zod tool for Go+TypeScript users #952
Southclaws
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
would you be willing to submit a PR to add this to the README in the Ecosystem section? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all!
Love Zod for validation on the frontend! Most of my projects with a backend use Go for the API so I needed a way to validate responses from API calls to make sure from after a
fetch
call everything is type-safe.Enter... Supervillain!
This small Go library takes a Go struct and generates a
z.object
using reflection. I use it as part of my build process to generate schemas and types for frontend code (since all my projects are monorepos so sharing this is easy)I hope someone finds this useful! And if you have any suggestions or ideas, open an issue or PR ❤️
Beta Was this translation helpful? Give feedback.
All reactions