openapi-ts icon indicating copy to clipboard operation
openapi-ts copied to clipboard

Effectful plugin

Open bastiankistner opened this issue 8 months ago • 3 comments

Please vote on this issue if you're interested in Effect plugin.

This issue will serve as a to-do list during development. To help us release this feature as quickly as possible, feel free to share the minimum requirements for your use case.

Description

effect/schema is another schema library that, unlike many others, allows us to not only decode data but also to encode it.

It's becoming increasingly popular and, with @effect/platform, offers a great way to build OpenAPI compliant APIs based on their schemas.

Using hey-api alongside effect would be a great addition! Even tanstack router lists it as supported through effects compatibility with standard schema.

bastiankistner avatar May 28 '25 10:05 bastiankistner

I made this issue more generic to focus on Effectful as a whole. My understanding is they provide a httpClient module which would enable using Effect as a client, is that correct? It would be also good to see some examples from the original issue. I have a hunch this one will be a special case where a single plugin might potentially not be the best solution.

mrlubos avatar Jul 27 '25 09:07 mrlubos

Hi, I just wanted to point out that there is an Effect OpenApi Client Gen project from one of the Effect Core maintainers: https://github.com/tim-smart/openapi-gen

I don't think it's stable, yet. But maybe this can serve as a template for a potential Hey-Api Effect Client?

DwieDave avatar Oct 28 '25 06:10 DwieDave

@DwieDave Thank you! @tim-smart would love your feedback once this is ready!

mrlubos avatar Oct 28 '25 08:10 mrlubos