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

Method ToConfig

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

ToConfig converts the internal configuration of an ASTValidator into an env.Validator instance which minimally must include the validator name, but may also include a map[string]any config object to be serialized to YAML. The string keys represent the configuration parameter name, and the any value

()

Source from the content-addressed store, hash-verified

122 //
123 // Note: only primitive CEL types are supported by CEL validators at this time.
124 ToConfig() *env.Validator
125}
126
127// ValidatorConfig provides an accessor method for querying validator configuration state.

Implementers 5

Envcel/env.go
formatValidatorcel/validator.go
nestingLimitValidatorcel/validator.go
returnTypeValidatorcel/env_test.go

Calls

no outgoing calls