Versions in this module Expand all Collapse all v0 v0.0.3 Mar 29, 2025 Changes in this version + const ErrDecisionTableEntryExpressionLanguageIsInvalid + var ErrDecisionTableCollectOperatorIsInvalid = "invalid decision table collect operator" + var ErrDecisionTableEntryReferencedFieldTypeIsInvalid = "referenced field type does not match field type" + var ErrDecisionTableExpressionLanguageIsInvalid = "invalid decision table expression language" + var ErrDecisionTableFieldNameIsRequired = "field name is required" + var ErrDecisionTableFieldTypeIsInvalid = "invalid field type" + var ErrDecisionTableHitPolicyIsInvalid = "invalid decision table hit policy" + var ErrDecisionTableIdIsRequired = "decision table ID is required" + var ErrDecisionTableInputFieldIsRequired = "at least one decision table input field is required" + var ErrDecisionTableNameIsRequired = "decision table name is required" + var ErrDecisionTableOutputFieldIsRequired = "at least one decision table output field is required" + var ErrDecisionTableRuleAnnotationIsRequired = "decision table rule annotation is required" + var ErrInputCountMismatch = "the number of input entries does not match the number of input fields" + var ErrOutputCountMismatch = "the number of output entries does not match the number of output fields" + func CreateInputEntryValidator(el expressionLanguage.ExpressionLanguage, entry string) (data.EntryValidatorInterface, error) + func CreateOutputEntryValidator(el expressionLanguage.ExpressionLanguage, entry string) (data.EntryValidatorInterface, error) + type DecisionTableValidator struct + func (v DecisionTableValidator) Validate(decisionTable decisionTable.DecisionTable, standard standard.Standard) error + type DecisionTableValidatorInterface interface + Validate func(decisionTable decisionTable.DecisionTable, standard standard.Standard) error + func NewDecisionTableValidator() DecisionTableValidatorInterface + type FieldValidator struct + func (v FieldValidator) Validate(field field.Field, standard standard.Standard) error + type FieldValidatorInterface interface + Validate func(field field.Field, standard standard.Standard) error + func NewFieldValidator() FieldValidatorInterface + type RuleValidator struct + func (v RuleValidator) Validate(rule rule.Rule, decisionTable decisionTable.DecisionTable, ...) error + type RuleValidatorInterface interface + Validate func(rule rule.Rule, decisionTable decisionTable.DecisionTable, ...) error + func NewRuleValidator() RuleValidatorInterface