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

Function ValidatedDeclarations

checker/options.go:38–43  ·  view source on GitHub ↗

ValidatedDeclarations provides a reference to validated declarations which will be inherited as a parent scope without copying.

(env *Env)

Source from the content-addressed store, hash-verified

36// ValidatedDeclarations provides a reference to validated declarations which will be inherited
37// as a parent scope without copying.
38func ValidatedDeclarations(env *Env) Option {
39 return func(opts *options) error {
40 opts.validatedDeclarations = env.validatedDeclarations()
41 return nil
42 }
43}
44
45// JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
46func JSONFieldNames(enabled bool) Option {

Callers 3

initCheckerMethod · 0.92
TestVarsInheritanceFunction · 0.85
TestCopyDeclarationsFunction · 0.85

Calls 1

validatedDeclarationsMethod · 0.80

Tested by 2

TestVarsInheritanceFunction · 0.68
TestCopyDeclarationsFunction · 0.68