guardrail-dev / guardrail

Principled code generation from OpenAPI specifications
https://guardrail.dev
MIT License
517 stars 131 forks source link

How should I implement a streamed API with Akka HTTP ? #1988

Open geirolz opened 4 weeks ago

geirolz commented 4 weeks ago

I'm opening this ticket because I cannot understand how I should implement a streamed API with this project. I checked the documentation and the examples but I didn't find anything.

We are using Akka HTTP at the moment. And the problem is that the generated code wants a Future as return type. We are reading from a streamed API and we want to forward directly the stream after the authentication.

Can someone help me ? Thanks in advance for the support

blast-hardcheese commented 3 weeks ago

Can you provide a minified example of what you are trying to accomplish? akka-http is a remarkably flexible framework, and while it may be possible to offer a suggestion that works easily with what you are trying to integrate with, it's hard to know without seeing it.