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

Function ValidateBindNestingLimit

cel/validator.go:265–267  ·  view source on GitHub ↗

ValidateBindNestingLimit ensures that cel.bind() macro nesting does not exceed the specified limit. This validator can be useful for preventing arbitrarily nested cel.bind() macro calls.

(limit int)

Source from the content-addressed store, hash-verified

263//
264// This validator can be useful for preventing arbitrarily nested cel.bind() macro calls.
265func ValidateBindNestingLimit(limit int) ASTValidator {
266 return bindNestingLimitValidator{limit: limit}
267}
268
269type argChecker func(env *Env, call, arg ast.Expr) error
270

Callers 3

validator.goFile · 0.85
TestEnvToConfigFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEnvToConfigFunction · 0.68