Milan Suk

Results 51 comments of Milan Suk

Hey, if I'm not mistaken, the addition of random example compiler was quite ad-hoc as I needed it in the `effect-http`. It's possible I'll remove it from this package and...

Hey, not sure I understand. Do you mean literally to stringify the openapi spec?

In the `effect-http` I simply call [ServerResponse.json](https://github.com/sukovanej/effect-http/blob/master/src/SwaggerRouter.ts#L153) and the impl of the encoding is in the [@effect/platform/internal/http/body](https://github.com/Effect-TS/platform/blob/main/packages/platform/src/internal/http/body.ts#L76) - so basically it's `JSON.stringify`. I think the openapi spec will be generally...

Hey, I don't have any experience with astro. But the integration of an effect-http app should be the same as integrating `@effect/platform` app / router (the `RouterBuilder.build` create an instance...

I believe the solution here are the `HttpApp.toWebHandler` / `HttpApp.toWebHandlerLayer` functions. Please see [this discord thread](https://discord.com/channels/795981131316985866/1125094089281511474/1256526365008728097) where the solution is discussed. In the following example, the `handler` should be the...

> By the way, what do I need to do with the close function? It will release resources allocated within a scope. It should be passed to an app teardown...

RouterBuilder is responsible for that. It automatically adds the router serving the docs. NodeServer is just a super light wrapper around the /platform-node server and its responsibility is to start...

https://sukovanej.github.io/effect-http/effect-http/RouterBuilder.ts.html#options-interface you can provide options to the make constructor to modify the path where to serve the docs or potentially turn it off completely.

https://github.com/sukovanej/effect-http?tab=readme-ov-file#router-handlers