Flunt icon indicating copy to clipboard operation
Flunt copied to clipboard

Add ability to have conditional rules in contracts

Open thiagolunardi opened this issue 8 years ago • 6 comments

Example:

Contract .Required() .IfNotNull(x.LastName, contract => contract.MinLength(3)); Means: LastName is not required, but if informed, must have more 3 letters or more.

thiagolunardi avatar Nov 08 '17 16:11 thiagolunardi

I agree! A conditional validation is extremely useful!

fgemig avatar Dec 26 '17 14:12 fgemig

Moved to version 2! Check milestones!

andrebaltieri avatar Feb 01 '21 00:02 andrebaltieri

This feature is a must have!

leandro-almeida avatar Apr 07 '21 23:04 leandro-almeida

Is there any prediction for this feature to be available?

filipimosquini avatar Aug 28 '21 20:08 filipimosquini

Sure @filipimosquini... there's a new version comming soon!

andrebaltieri avatar Aug 30 '21 12:08 andrebaltieri