Class RuleSetValidator
- Namespace
- RuleWright.Serialization
- Assembly
- RuleWright.Serialization.dll
Structurally validates a rule document against the RuleWright schema contract
(docs/schema/rule-schema.json) before parsing/compilation, producing
errors with JSON pointer paths. Usable standalone — this is the surface a
rule-builder UI's real-time validation hooks into.
public static class RuleSetValidator
- Inheritance
-
RuleSetValidator
- Inherited Members
Methods
- Validate(RuleJsonValue)
Validates a parsed JSON document as a rule or rule set, against the built-in vocabulary only.
- Validate(RuleJsonValue, RuleDocumentOptions?)
Validates a parsed JSON document as a rule or rule set, folding an engine's registered vocabulary (custom action types) into the schema contract. This is the overload
RuleWrightEngine.Validateuses, so documents that name that engine's registered actions validate cleanly while misspellings are still rejected.