Is there a way currently to validate objects in Azure functions using something similar to Data Annotations and Model State in the MVC framework? Or what is the standard approach to data validation and error response in Functions?
This mechanism doesn't exist today, so you need to handle this validation yourself, but this would be a great feature.
We have an issue tracking this here: https://github.com/Azure/azure-webjobs-sdk/issues/1199, please feel free to comment and upvote!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With