Hacker News new | past | comments | ask | show | jobs | submit
FastEndpoints does this for you with Validators as an example... It can be abstracted cleanly.