ValidateFields is used to detect unknown fields during parsing of JBP_CONFIG* configurations
(data []byte, out interface{})
| 20 | |
| 21 | // ValidateFields is used to detect unknown fields during parsing of JBP_CONFIG* configurations |
| 22 | func (h YamlHandler) ValidateFields(data []byte, out interface{}) error { |
| 23 | dec := yaml.NewDecoder(bytes.NewReader(data)) |
| 24 | dec.KnownFields(true) |
| 25 | return dec.Decode(out) |
| 26 | } |
no outgoing calls
no test coverage detected