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)
| 262 | // |
| 263 | // This validator can be useful for preventing arbitrarily nested cel.bind() macro calls. |
| 264 | func ValidateBindNestingLimit(limit int) ASTValidator { |
| 265 | return bindNestingLimitValidator{limit: limit} |
| 266 | } |
| 267 | |
| 268 | // ValidateRegexProgramSizeLimit ensures that regex pattern literals do not exceed the specified regex program size limit. |
| 269 | func ValidateRegexProgramSizeLimit(limit int) ASTValidator { |
no outgoing calls