required-custom-rule-target-json-path
Overview
This rule belongs to the custom-ruleset-validation
ruleset and states that:
When defining a custom rule target, the property JsonPath
must be specified which helps identify the specific component(s) that need to be validated. The JsonPath
property must use valid JSON Path expression syntax.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | Required property JsonPath is empty or missing in the rule target definition. |
Code | CUSTOMRULESET_V104 |
Type | Validation |
Rule System | Semantic |
Broad Category | Custom Rules |
Tags | custom ruleset semantic validation json path target rule |
Suggested Fixes
- Make sure that you have added the
JsonPath
property in the rule target definition object. - Ensure that the value of property
JsonPath
is not empty or null. - Name of property
JsonPath
is compared in a case-sensitive manner.