Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.forterulesengine.io/llms.txt

Use this file to discover all available pages before exploring further.

validateRuleJSON(rule): Either<RulesError[], RuleJSON>
Defined in: src/modules/validation.ts:308 Parses a JSON string and returns Either a RuleJSON object or an error.

Parameters

ParameterTypeDescription
rulestringstring to be parsed.

Returns

Either<RulesError[], RuleJSON> Either the parsed RuleJSON object or an error.