Validation on Minimal API based on route parameter bound to complex object implementing IValidatableObject
This example shows how the to validate complex object bound with the route via [AsParameter]
attribute. We will implement IValidatableObject
interface to implement custom validation.