Class RuleSchemaCatalog
- Namespace
- RuleWright.Serialization
- Assembly
- RuleWright.Serialization.dll
The closed authoring vocabulary of RuleWright's rule schema, as structured metadata:
the condition operators, logical group combinators, computed-value expression operators,
and action types a rule document may use. This is the runtime companion to
docs/schema/rule-schema.json — a rule-builder UI can enumerate it to populate its
palettes and pickers instead of hard-coding the vocabulary, and it stays in lock-step with
the engine because it is derived from the same sources of truth the parser and validator use
(RuleWright.Serialization.OperatorMap, RuleWright.Serialization.ExpressionOperatorMap, and the domain enums).
The built-in vocabulary is fixed; the one authoring input that varies per engine is the set
of registered custom functions, discoverable via
RuleWrightEngine.RegisteredFunctions.
public static class RuleSchemaCatalog
- Inheritance
-
RuleSchemaCatalog
- Inherited Members
Properties
- ActionTypes
Every action type (
setOutput,addToOutput,appendToOutput,removeOutput).
- ConditionOperators
Every condition operator, in domain-enum declaration order.
- ExpressionOperators
Every computed-value expression operator, in domain-enum declaration order.
- LogicalOperators
Every logical group combinator (
AND,OR,NOT).
Methods
- TryGetActionType(string, out ActionTypeInfo)
Looks up an action type by its JSON
typename (e.g."setOutput").
- TryGetConditionOperator(string, out ConditionOperatorInfo)
Looks up a condition operator by its JSON spelling (e.g.
"Equals").
- TryGetExpressionOperator(string, out ExpressionOperatorInfo)
Looks up an expression operator by its JSON
opspelling (e.g."add").