Script validators (validationScript)

Lightweight script validators are scripts that do not require connections to external services. Scripts can be written in the repository and then used on the application.

The script code should be written in plain JavaScript (in ES6 or earlier). The code must be compatible with the JavaScript engine version provided by Rhino (http://mozilla.github.io/rhino/compat/engines.html). Additionally have been disabled elements such as "eval".

Validator scripts are cached after being fetched. The time-to-live is configured by the key repository_script_validator_cache_ttl and settings["REPOSITORY_SCRIPT_VALIDATOR_CACHE_TTL"]

Last updated

Was this helpful?