valid-custom-rule-verification-method-argument-type
Overview
This rule belongs to the custom-ruleset-syntax-validation
ruleset and states that:
The method that needs to be applied on the target entity as part of the custom validation, specified using VerificationMethod
, may require one or more arguments that need to be provided alongside the rule definition using the VerificationMethodArgs
property as key-value pairs. Depending upon the argument, the type of the argument's value can vary and must match the expected type documented for that argument.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | The verification method argument value has an invalid type. |
Code | CUSTOMRULESETSYNTAX_V101 |
Type | Validation |
Rule System | Syntax |
Broad Category | Custom Rules |
Tags | custom ruleset syntax validation argument method verification rule |
Suggested Fixes
- Ensure that you haven't defined the argument expected to be an array as an object or vice versa.
- Make sure that you didn't declare a numeric argument as a string or vice versa.
- Ensure that the type of the argument value matches expected type for that argument as per the documentation.