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
jsonstringThe rule document JSON.
Returns
Exceptions
- ArgumentNullException
jsonis null.- InvalidOperationException
No JSON reader was configured on the builder.