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

Method ToConfig

cel/validator.go:305–307  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

303
304// ToConfig converts the ASTValidator to an env.Validator specifying the validator name.
305func (v homogeneousAggregateLiteralValidator) ToConfig() *env.Validator {
306 return env.NewValidator(v.Name())
307}
308
309// Validate validates that all lists and map literals have homogeneous types, i.e. don't contain dyn types.
310//

Callers

nothing calls this directly

Calls 2

NameMethod · 0.95
NewValidatorFunction · 0.92

Tested by

no test coverage detected