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
Hi, I have a bit of a hacked together usecase where I am using ts-rest to handle api definitions + request/response parsing and then lambda-local to try and hit that endpoint during development.
I get the following zod errors when using lambda-local and calling a GET endpoint with a nested object:
"Expected object, received string"
It seems like whatever lambda-local is doing under the hood to turn my request into a queryStringParameters that the aws event expects, nested objects get turned into strings?
Let me know if I'm just doing something silly somewhere. I can provide more code if needed.
The text was updated successfully, but these errors were encountered:
Hi, I have a bit of a hacked together usecase where I am using
ts-rest
to handle api definitions + request/response parsing and thenlambda-local
to try and hit that endpoint during development.I get the following zod errors when using
lambda-local
and calling aGET
endpoint with a nested object:It seems like whatever
lambda-local
is doing under the hood to turn my request into aqueryStringParameters
that the aws event expects, nested objects get turned into strings?Let me know if I'm just doing something silly somewhere. I can provide more code if needed.
The text was updated successfully, but these errors were encountered: