Open cakper opened 1 month ago
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 extending AwsLambdaIORuntime. I believe the issue is that in LambdaHandler 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#L28
serverOptions
AwsLambdaIORuntime
LambdaHandler
How 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
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 :)
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