ToConfig converts the ASTValidator to an env.Validator specifying the validator name and the nesting limit as an integer value: {"limit": int}
()
| 495 | // ToConfig converts the ASTValidator to an env.Validator specifying the validator name and the nesting limit |
| 496 | // as an integer value: {"limit": int} |
| 497 | func (v bindNestingLimitValidator) ToConfig() *env.Validator { |
| 498 | return env.NewValidator(v.Name()).SetConfig(map[string]any{"limit": v.limit}) |
| 499 | } |
| 500 | |
| 501 | type regexProgramSizeLimitValidator struct { |
| 502 | limit int |
nothing calls this directly
no test coverage detected