Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityError
MessageThe verification method argument value has an invalid type.
CodeCUSTOMRULESETSYNTAX_V101
TypeValidation
Rule SystemSyntax
Broad CategoryCustom Rules
Tagscustom 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.

For More Information