compile

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

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.


fun compile(json: JsonValue, fileId: String? = null): Rule(source)