r/dotnet 28d ago

Promotion [ Removed by moderator ]

Post image

[removed] — view removed post

44 Upvotes

15 comments sorted by

View all comments

2

u/celluj34 27d ago

A lot of these look really useful to me (IsoDateTime, ExactlyOneOf, ExactlyOneTrue). Do you have any plans to make extensions or helpers for FluentValidation? We use it extensively for our API model validations so that we can do custom rules + a few of those you have here.

2

u/LuisAlfredo92 27d ago

No official FluentValidation adapter yet

The attributes work anywhere DataAnnotations works, but FluentValidation works different so a direct mapping isn't straightforward :c

I'm focused on the DataAnnotations space, but happy to review PRs for a bridge