Open Y2KForever opened 6 months ago
@Y2KForever have you found any solution to this?
The example code casts to a record
headers: event.headers as Record<string, string | string[]>,
The example code casts to a record
headers: event.headers as Record<string, string | string[]>,
Interesting. The AWS SAM example I looked at does not cast it.
https://github.com/openapistack/openapi-backend/blob/main/examples/aws-sam/index.ts
Hi, trying to use this openapi-backend to validate and follow our openapi specification, but currently running into an issue with the handleRequest.
this is our lambda:
where
header: event.headers
currently are throwing a typescript error, forcing us to useany
.Error:
I couldn't find anything in the documentation mentioning this, only that we should use headers: event.headers.