- Serverless Programming Cookbook
- Heartin Kanikathottu
- 62字
- 2025-04-04 15:02:18
How it works...
In this recipe, we added a model based on the JSON schema for our input message format. To use the model to reject payloads that do not conform to our format, we did the following:
- We specified all of the fields that are required (this is optional)
- We created a validator and assigned it to this method