ecyrbe / zodios

typescript http client and server with zod validation
https://www.zodios.org/
MIT License
1.59k stars 44 forks source link

No typesafety when using helpers #606

Open Faithfinder opened 1 month ago

Faithfinder commented 1 month ago

Not sure what I'm doing wrong here: https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgLQgE2BAzgGjiAQwGsBTAQTGD0NIFEA7NSYe+AXzgDMoIQ4AiAAIAvdJiwB6AMbQS-ANwAoUJFiI4wuB268BotAsWKZ9LPAKUAIiU4tgMTPTgBefMXKUAFAG1FcN3SMzKyeCH7+cAQANsAEWABcAgDmJDAAqlgkUFj8OOH+IKkAFuiJ-CkwuflwYAQwRWUSAK6Z2VURcFAkWJCmJInCAHQxMFnRnvxFJFFREPwAlHn+bIvhNCQMTBAsMKHV0bEJyakAyiD1Se0RhfWlx5VLEbX1jS1ZOY-+XT0QfQPD9jGUQmWHORUuq2WqwAuvMlIoSAAPVTwExmSKUADCMRIrBccHoJAA7igxNhPBZgNZbPR7I44UY0fA3tl8QQiQR7BjgNjgLiYIMKhl3p4GUyCb8kcAzAQ8a52ZzzFicaxBakAOpFUVKIA

image

Faithfinder commented 1 month ago

So, after playing with, I discovered it basically isn't supposed to work, and you should use apiBuilder instead, in this case? This isn't at all clear from the docs though, so I'll leave this here.

stale[bot] commented 6 days ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Faithfinder commented 6 days ago

=P