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

Method Configure

ext/formatting_v2.go:416–420  ·  view source on GitHub ↗

Configure implements the ASTValidatorConfigurer interface and augments the list of functions to skip during homogeneous aggregate literal type-checks.

(config cel.MutableValidatorConfig)

Source from the content-addressed store, hash-verified

414// Configure implements the ASTValidatorConfigurer interface and augments the list of functions to skip
415// during homogeneous aggregate literal type-checks.
416func (stringFormatValidatorV2) Configure(config cel.MutableValidatorConfig) error {
417 functions := config.GetOrDefault(cel.HomogeneousAggregateLiteralExemptFunctions, []string{}).([]string)
418 functions = append(functions, "format")
419 return config.Set(cel.HomogeneousAggregateLiteralExemptFunctions, functions)
420}
421
422// Validate parses all literal format strings and type checks the format clause against the argument
423// at the corresponding ordinal within the list literal argument to the function, if one is specified.

Callers

nothing calls this directly

Calls 2

GetOrDefaultMethod · 0.65
SetMethod · 0.65

Tested by

no test coverage detected