For data validation, Python coders frequently will use this library called Voluptuous. Is a great library to validate data before processing it further in the code.
Is there any equivalent NuGet library we can use in C#?
Below is a python snippet on how to use voluptuous in python
from voluptuous import Required, All, Length, Range
schema = Schema({
Required('q'): All(str, Length(min=1)),
Required('per_page', default=5): All(int, Range(min=1, max=20)), 'page': All(int, Range(min=0))
})