If set to a number, sets the reference relative starting point. Cannot be combined with separator prefix characters. Defaults to the reference key prefix (or 1 if none present)
creates an in-reference.
when true, the reference resolves by reaching into maps and sets.
an array of array pairs using the format [[key, value], [key, value]]
used to maps the resolved reference value to another value.
If the resolved value is not in the map, it is returned as-is.
Cannot be used with adjust
.
overrides default prefix characters.
references to the globally provided context preference.
references to error-specific or rule specific context.
references to the root value being validated.
when true, the value of the reference is used instead of its name in error messages and template rendering. Defaults to false.
overrides the default .
hierarchy separator. Set to false to treat the key as a literal value.
a function with the signature
function(value)
wherevalue
is the resolved reference value and the return value is the adjusted value to use. Note that the adjust feature will not perform any type validation on the adjusted value and it must match the value expected by the rule it is used in. Cannot be used withmap
.(value) => value + 5