github-actions[bot] on gh-pages
deploy: 8ec3224e773ff6938ab446a⦠(compare)
willfarrell on main
docs: fix handler typo Merge pull request #842 from ga⦠(compare)
httpHeaderNormalizer
middleware before the jsonBodyParser
.
Cannot destructure property
httpContentNegotiationof 'undefined' or 'null'
error?
import middy from 'middy'
const {
httpContentNegotiation,
httpErrorHandler
} = middy.middlewares
const lovelyStuff = event => {
// do stuff
}
const handler = middy(lovelyStuff)
.use(httpContentNegotiation({ availableMediaTypes: ['application/json'] }))
.use(jsonBodyParser())
.use(httpErrorHandler())
export { handler }
'Event object failed validation'
would be possibly safer