* Worked out this was related to SST Console, as t...
# help
s
* Worked out this was related to SST Console, as the way I was passing in the body seems incorrect. Passing the body via Postman worked * Hello, I've been following the guide from serverless-stack for middy setup here - https://serverless-stack.com/examples/how-to-use-middy-to-validate-your-serverless-api-requests.html I've noticed the guide suggests accessing fields via:
Copy code
const { fname, lname } = event.body;
But when talking about the SST console it shows utilizing the Query tab rather than Body tab for API requests. Which seems odd and doesn't work for me, instead I add them to the body tab, is this an inaccuracy in the guide or on my end? When applying the inputSchema as prescribed in the tutorial, I seem to run into an error validating the template. No matter what body is passed in correct or incorrect same error occurs as shown in the snippet below. Any suggestions on what I could try would be much appreciated
f
@manitej can you take a look why
fname
and
lname
are passed in as query string, and the code is reading from body?
m
@Scott forgot to mention, updated the example!
s
@manitej thanks for the update, just checked it out, looks good 🙂