Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin proposal : typera-zod #688

Open
cyrilchapon opened this issue Mar 15, 2023 · 3 comments
Open

Plugin proposal : typera-zod #688

cyrilchapon opened this issue Mar 15, 2023 · 3 comments

Comments

@cyrilchapon
Copy link

cyrilchapon commented Mar 15, 2023

Hey !

I wrote a kind of plugin : an alternative request parser with the excellent library zod.

Here it is => typera-zod.

Motivations : I rewrite — literally like every week — some kind of "validated endpoint creators" for express; I'm tired of it and found Typera several months ago to make that work. I now had a chance to give it a shot. Though, I'm not that familiar with io-ts and I already am in love with Zod. So, I gave an attempt to marry each other.

Any thoughts ? 🙂

@akheron
Copy link
Owner

akheron commented Mar 16, 2023

Looks great! This definitely needs to be mentioned in typera’s README and docs. Have you tried whether typera-openapi also works with your lib?

@cyrilchapon
Copy link
Author

@akheron thanks 🙂

Have you tried whether typera-openapi also works with your lib?
Nope, this could be a next step but I tend to prefer not-hard-generating-solutions for this (just dynamic OpenAPI schemas within the code).

I can have a look though.

@cyrilchapon
Copy link
Author

Ok so I made a test (sorry for delay, I have to do a massive refactor due to #708).

It's not working for now, leaving an issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants