MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ToConfig

Method ToConfig

cel/validator.go:497–499  ·  view source on GitHub ↗

ToConfig converts the ASTValidator to an env.Validator specifying the validator name and the nesting limit as an integer value: {"limit": int}

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

NameMethod · 0.95
NewValidatorFunction · 0.92
SetConfigMethod · 0.80

Tested by

no test coverage detected