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

Method ToConfig

cel/validator.go:334–336  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

332
333// ToConfig converts the ASTValidator to an env.Validator specifying the validator name.
334func (v homogeneousAggregateLiteralValidator) ToConfig() *env.Validator {
335 return env.NewValidator(v.Name())
336}
337
338// Validate validates that all lists and map literals have homogeneous types, i.e. don't contain dyn types.
339//

Callers

nothing calls this directly

Calls 2

NameMethod · 0.95
NewValidatorFunction · 0.92

Tested by

no test coverage detected