Name returns the name of the nesting limit validator.
()
| 437 | |
| 438 | // Name returns the name of the nesting limit validator. |
| 439 | func (v nestingLimitValidator) Name() string { |
| 440 | return nestingLimitValidatorName |
| 441 | } |
| 442 | |
| 443 | // ToConfig converts the ASTValidator to an env.Validator specifying the validator name and the nesting limit |
| 444 | // as an integer value: {"limit": int} |