ToConfig converts the ASTValidator to an env.Validator specifying the validator name and the nesting limit as an integer value: {"limit": int}
()
| 486 | // ToConfig converts the ASTValidator to an env.Validator specifying the validator name and the nesting limit |
| 487 | // as an integer value: {"limit": int} |
| 488 | func (v bindNestingLimitValidator) ToConfig() *env.Validator { |
| 489 | return env.NewValidator(v.Name()).SetConfig(map[string]any{"limit": v.limit}) |
| 490 | } |
| 491 | |
| 492 | type regexProgramSizeLimitValidator struct { |
| 493 | limit int |
nothing calls this directly
no test coverage detected