Class RuleSetParser
- Namespace
- RuleWright.Serialization
- Assembly
- RuleWright.Serialization.dll
Maps a validated JSON document to the immutable RuleSet domain model.
The layout key is presentation metadata and is skipped entirely.
public static class RuleSetParser
- Inheritance
-
RuleSetParser
- Inherited Members
Methods
- Parse(RuleJsonValue)
Validates and parses a rule document (a single rule or a rule set), against the built-in vocabulary only.
- Parse(RuleJsonValue, RuleDocumentOptions?)
Validates and parses a rule document, folding an engine's registered vocabulary (custom action types) into the schema contract.
Parsing is also where
paramsdisappear: a param is a named subexpression, and every{ "param": "..." }reference is replaced by the (immutable, shared) expression it names — local names shadowing the set's. The domain model, the content hash, and both execution paths therefore never see params at all, which is exactly why a param-authored document and its hand-inlined equivalent compile to the same delegates.