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

Function JSONFieldNames

checker/options.go:46–51  ·  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

44
45// JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
46func JSONFieldNames(enabled bool) Option {
47 return func(opts *options) error {
48 opts.jsonFieldNames = enabled
49 return nil
50 }
51}

Callers 3

initCheckerMethod · 0.92
TestASTJsonNamesFunction · 0.92
TestCheckFunction · 0.70

Calls

no outgoing calls

Tested by 2

TestASTJsonNamesFunction · 0.74
TestCheckFunction · 0.56