MCPcopy Create free account
hub / github.com/AdRoll/baker / ExpandJSONConfig

Struct ExpandJSONConfig

filter/expand_json.go:40–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40type ExpandJSONConfig struct {
41 Source string `help:"record field that contains the json" required:"true"`
42 Fields map[string]string `help:"<JMESPath -> record field> map, the rest will be ignored" required:"true"`
43 TrueFalseValues []string `help:"bind the json boolean values to correstponding strings" default:"[\"true\", \"false\"]"`
44}
45
46func (cfg *ExpandJSONConfig) fillDefaults() {
47 if len(cfg.TrueFalseValues) == 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected