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

Function JSONFieldNames

checker/options.go:62–67  ·  view source on GitHub ↗

JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names

(enabled bool)

Source from the content-addressed store, hash-verified

60
61// JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
62func JSONFieldNames(enabled bool) Option {
63 return func(opts *options) error {
64 opts.jsonFieldNames = enabled
65 return nil
66 }
67}

Callers 5

initCheckerMethod · 0.92
TestASTJsonNamesFunction · 0.92
TestCheckFunction · 0.70
BenchmarkCheckFunction · 0.70
TestEnterExitScopeFunction · 0.70

Calls

no outgoing calls

Tested by 4

TestASTJsonNamesFunction · 0.74
TestCheckFunction · 0.56
BenchmarkCheckFunction · 0.56
TestEnterExitScopeFunction · 0.56