Skip to main content

CascadeMode

Specifies how rules should cascade when one fails.

Assembly: ServiceStack.dll​
View Source​
Declaration
public enum CascadeMode

Fields​

Continue​

When a rule fails, execution continues to the next rule.

View Source​
Declaration
Continue = 0

StopOnFirstFailure​

When a rule fails, validation is stopped and all other rules in the chain will not be executed.

View Source​
Declaration
[Obsolete("Use CascadeMode.Stop instead. The behaviour of StopOnFirstFailure was ambiguous when used at validator-level. For more details, see https://docs.fluentvalidation.net/en/latest/conditions.html#stop-vs-stoponfirstfailure")]
StopOnFirstFailure = 1

Stop​

When a rule fails, validation is immediately halted.

View Source​
Declaration
Stop = 2