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

Method ToConfig

cel/validator.go:257–259  ·  view source on GitHub ↗

ToConfig converts the ASTValidator to an env.Validator specifying the validator name.

()

Source from the content-addressed store, hash-verified

255
256// ToConfig converts the ASTValidator to an env.Validator specifying the validator name.
257func (v formatValidator) ToConfig() *env.Validator {
258 return env.NewValidator(v.Name())
259}
260
261// Validate searches the AST for uses of a given function name with a constant argument and performs a check
262// on whether the argument is a valid literal value.

Callers

nothing calls this directly

Calls 2

NameMethod · 0.95
NewValidatorFunction · 0.92

Tested by

no test coverage detected