Learn how to effectively validate incoming requests in your Serverless framework projects using Middy middleware and the Joi library. In this tutorial, I'll walk you through step-by-step on how to improve your Lambda functions by validating request bodies, handling errors, and creating middleware to make your code more efficient and secure. By the end of this video, you'll have a strong foundation in using Middy and Joi.
Starter code: https://github.com/piotrmol/serverles...
Final code: https://github.com/piotrmol/serverles...
00:00 Introduction
01:52 Creating middy middleware
04:26 Error handling middleware