MCPcopy Create free account
hub / github.com/cel-expr/cel-go / newValidatorConfig

Function newValidatorConfig

cel/validator.go:153–159  ·  view source on GitHub ↗

newValidatorConfig initializes the validator config with default values for core CEL validators.

()

Source from the content-addressed store, hash-verified

151
152// newValidatorConfig initializes the validator config with default values for core CEL validators.
153func newValidatorConfig() *validatorConfig {
154 return &validatorConfig{
155 data: map[string]any{
156 HomogeneousAggregateLiteralExemptFunctions: []string{},
157 },
158 }
159}
160
161// GetOrDefault returns the configured value for the name, if present, else the input default value.
162//

Callers 2

CheckMethod · 0.85
TestValidatorConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidatorConfigFunction · 0.68