Sometimes, a property (key/value) that you want to test against will be located in multiple places. For example, if you want to create a custom rule that ensures all container images have a pinned version, you can avoid creating a rule logic that declares all possible paths because checking the value of the image property in two locations can be complex.
To avoid this complexity, you can write a JSON Schema with a rule logic that will define the common path and disregard all prefixes:
Here is an example of what that would look like:
The above rule is enforcing the same logic as our built-in rule - ☑️ Ensure each container image has a pinned (tag) version