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)
| 252 | // |
| 253 | // This validator can be useful for preventing arbitrarily nested cel.bind() macro calls. |
| 254 | func ValidateBindNestingLimit(limit int) ASTValidator { |
| 255 | return bindNestingLimitValidator{limit: limit} |
| 256 | } |
| 257 | |
| 258 | // ValidateRegexProgramSizeLimit ensures that regex pattern literals do not exceed the specified regex program size limit. |
| 259 | func ValidateRegexProgramSizeLimit(limit int) ASTValidator { |
no outgoing calls