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

Function newValidatorConfig

cel/validator.go:180–186  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

178
179// newValidatorConfig initializes the validator config with default values for core CEL validators.
180func newValidatorConfig() *validatorConfig {
181 return &validatorConfig{
182 data: map[string]any{
183 HomogeneousAggregateLiteralExemptFunctions: []string{},
184 },
185 }
186}
187
188// GetOrDefault returns the configured value for the name, if present, else the input default value.
189//

Callers 2

CheckMethod · 0.85
TestValidatorConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidatorConfigFunction · 0.68