Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatorSpec ¶
type OperatorSpec struct {
Name string
MinArgs int
MaxArgs int
ArgTypes []ArgType
Description string
}
OperatorSpec defines the specification for an operator
type ValidationError ¶
ValidationError represents a validation error with context
func (ValidationError) Error ¶
func (e ValidationError) Error() string
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator validates JSON Logic expressions
func NewValidator ¶
func NewValidator() *Validator
NewValidator creates a new validator with all supported operators
func (*Validator) GetSupportedOperators ¶
GetSupportedOperators returns a list of all supported operators
func (*Validator) IsOperatorSupported ¶
IsOperatorSupported checks if an operator is supported
Click to show internal directories.
Click to hide internal directories.