Table of Contents

Method Validate

Namespace
RuleWright.Execution
Assembly
RuleWright.Execution.dll

Validate(string)

Validates JSON against the RuleWright schema contract without loading it, returning structured errors with JSON pointer paths. Malformed JSON is reported as a single root-level error rather than an exception, making this directly bindable from editor/UI validation.

public RuleSetValidationResult Validate(string json)

Parameters

json string

The rule document JSON.

Returns

RuleSetValidationResult

Exceptions

ArgumentNullException

json is null.

InvalidOperationException

No JSON reader was configured on the builder.