RuleCompiler

Functions

Link copied to clipboard
fun compile(json: JsonValue, fileId: String? = null): Rule

fun compile(text: String, fileId: String? = null): Rule

Decodes and validates one rule; throws RuleException with the first violation. fileId is the rule file name without .json and must equal the rule id.

Link copied to clipboard

Every per-rule check; an empty list means the rule is well formed.