Back to Practical Aspnetcore

Validation on Minimal API based on route parameter bound to complex object implementing IValidatableObject

projects/net10/validation-2/README.md

latest298 B
Original Source

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.