.NET 7 Minimal API Model Validation

preview_player
Показать описание
When it comes to the .NET 7 MInimal API, model validation works a little bit different, as we don't have an "ApiController".
But here's how to perform model validation in 4 easy steps, using the FluentValidation library and endpoint filters.

#dotnet #csharp #programming #programmingtips #restapi #shorts

Join this channel to get source code access and other perks:

Also follow me here (especially if you are a self taught developer):

My setup:
Рекомендации по теме
Комментарии
Автор

ok but why not just inject the validator into the endpoint method tho?

path_selector