clean-minimal-api icon indicating copy to clipboard operation
clean-minimal-api copied to clipboard

bugfix: validators weren't invoked

Open zzzzzeke opened this issue 3 years ago • 2 comments

Followed documentation from FastEndpoints on FluentValidation.

zzzzzeke avatar Jul 26 '22 13:07 zzzzzeke

Documentation link is now changed to this

@Elfocrash

timbze avatar Sep 05 '22 23:09 timbze

In Program.cs you can change builder.Services.AddFastEndpoints(); to builder.Services.AddFastEndpoints(o => o.IncludeAbstractValidators = true); instead of removing the abstract validator.

kashdevine avatar Oct 28 '22 01:10 kashdevine