|
Pip-Services-Commons-Dotnet
|
Validation rule to check that value is included into the list of constants. More...
Public Member Functions | |
| IncludedRule (params object[] values) | |
| Creates a new validation rule and sets its values. More... | |
| void | Validate (string path, Schema schema, object value, List< ValidationResult > results) |
| Validates a given value against this rule. More... | |
Private Attributes | |
| readonly object [] | _values |
Validation rule to check that value is included into the list of constants.
See IValidationRule
| PipServices3.Commons.Validate.IncludedRule.IncludedRule | ( | params object [] | values | ) |
Creates a new validation rule and sets its values.
| values | a list of constants that value must be included to |
| void PipServices3.Commons.Validate.IncludedRule.Validate | ( | string | path, |
| Schema | schema, | ||
| object | value, | ||
| List< ValidationResult > | results | ||
| ) |
Validates a given value against this rule.
| path | a dot notation path to the value. |
| schema | a schema this rule is called from |
| value | a value to be validated. |
| results | a list with validation results to add new results. |
Implements PipServices3.Commons.Validate.IValidationRule.
1.8.13