Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Expected object, received string" for queryStringParameters #247

Open
ferdy-roz opened this issue Apr 26, 2024 · 0 comments
Open

"Expected object, received string" for queryStringParameters #247

ferdy-roz opened this issue Apr 26, 2024 · 0 comments

Comments

@ferdy-roz
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant