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

Function newValidatorConfig

cel/validator.go:169–175  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

167
168// newValidatorConfig initializes the validator config with default values for core CEL validators.
169func newValidatorConfig() *validatorConfig {
170 return &validatorConfig{
171 data: map[string]any{
172 HomogeneousAggregateLiteralExemptFunctions: []string{},
173 },
174 }
175}
176
177// GetOrDefault returns the configured value for the name, if present, else the input default value.
178//

Callers 2

CheckMethod · 0.85
TestValidatorConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestValidatorConfigFunction · 0.68