You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Indeed that's a bug. I think following what other interpreters do, that is - allow defining custom server options and using those - is what we should be after. If you could work on a PR, that would be great :)
*Why I did it?*
LambdaHandler had the hardcoded AwsServerOptions, so delivering
the custom server options was impossible.
*How I did it:*
LambdaHandler started to accept options by analogous to ZioLambdaHandler
Closes#4064
Tapir version: latest in master
Scala version: 3.5.1
Hello,
I was trying to configure CORS for lambda handler and couldn't get it to work by overriding
serverOptions
when extendingAwsLambdaIORuntime
. I believe the issue is that inLambdaHandler
when process is called, then default no encoding options are used: https://github.com/softwaremill/tapir/blob/master/serverless/aws/lambda-cats-effect/src/main/scala/sttp/tapir/serverless/aws/lambda/LambdaHandler.scala#L28How to reproduce?
Create
AwsLambdaIORuntime
and pass any interceptor to it, run the code - it doesn't get called.I might give fixing it a go, if I get a bit of guidance at to what solution you would prefer
The text was updated successfully, but these errors were encountered: