Class ConditionOperatorInfo
- Namespace
- RuleWright.Serialization
- Assembly
- RuleWright.Serialization.dll
Discovery metadata for one condition operator: its JSON spelling, domain enum, and the kind of value it takes. Enumerated from ConditionOperators so a rule-builder UI can populate operator pickers and value editors without hard-coding the vocabulary. Authoritative validation still lives in RuleSetValidator; this is a coarser authoring hint.
public sealed class ConditionOperatorInfo
- Inheritance
-
ConditionOperatorInfo
- Inherited Members
Properties
- AllowsExpressionLeft
Whether the left-hand side may be a computed
expressionrather than only afield(true for every operator exceptcustomand the quantifiers).
- JsonName
The JSON schema spelling used in rule documents (e.g.
"Equals").
- Operator
The domain enum value.
- RequiresElementCondition
Whether the operator quantifies over a collection and therefore requires a nested per-element
condition(Any,All,None).
- RequiresFunctionName
Whether a function
nameis required (thecustomoperator).
- RequiresValue
Whether a comparison
valueis required (true for Scalar/Text/Array).
- ValueKind
The kind of comparison value this operator takes.