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

Function HomogeneousAggregateLiterals

cel/options.go:222–224  ·  view source on GitHub ↗

HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provided as variables to the expression, as well as via conversion of well-known dynamic types, or with unchecked expressions.

()

Source from the content-addressed store, hash-verified

220// expression, as well as via conversion of well-known dynamic types, or with unchecked
221// expressions.
222func HomogeneousAggregateLiterals() EnvOption {
223 return ASTValidators(ValidateHomogeneousAggregateLiterals())
224}
225
226// variadicLogicalOperatorASTs flatten like-operator chained logical expressions into a single
227// variadic call with N-terms. This behavior is useful when serializing to a protocol buffer as

Callers 3

TestDynamicDispatchFunction · 0.85
BenchmarkDynamicDispatchFunction · 0.85

Calls 2

ASTValidatorsFunction · 0.85

Tested by 3

TestDynamicDispatchFunction · 0.68
BenchmarkDynamicDispatchFunction · 0.68