Configure implements the ASTValidatorConfigurer interface and augments the list of functions to skip during homogeneous aggregate literal type-checks.
(config cel.MutableValidatorConfig)
| 414 | // Configure implements the ASTValidatorConfigurer interface and augments the list of functions to skip |
| 415 | // during homogeneous aggregate literal type-checks. |
| 416 | func (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. |
nothing calls this directly
no test coverage detected