| 38 | } |
| 39 | |
| 40 | type 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 | |
| 46 | func (cfg *ExpandJSONConfig) fillDefaults() { |
| 47 | if len(cfg.TrueFalseValues) == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected