For the complete documentation index, see llms.txt. This page is also available as Markdown.

Script validators (validationScript)

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

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

The script validators are cached after retrieval. The lifetime is controlled by the configuration key repository_script_validator_cache_ttl and settings["REPOSITORY_SCRIPT_VALIDATOR_CACHE_TTL"]

Last updated

Was this helpful?