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

Struct Validator

common/env/env.go:703–706  ·  view source on GitHub ↗

Validator represents a named validator with an optional map-based configuration object. Note: the map-keys must directly correspond to the internal representation of the original validator, and should only use primitive scalar types as values at this time.

Source from the content-addressed store, hash-verified

701// Note: the map-keys must directly correspond to the internal representation of the original
702// validator, and should only use primitive scalar types as values at this time.
703type Validator struct {
704 Name string `yaml:"name" json:"name"`
705 Config map[string]any `yaml:"config,omitempty" json:"config,omitempty"`
706}
707
708// Validate validates the configuration of the validator object.
709func (v *Validator) Validate() error {

Callers 1

unmarshalMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected