MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / ValidateFields

Method ValidateFields

src/java/common/yaml_handler.go:22–26  ·  view source on GitHub ↗

ValidateFields is used to detect unknown fields during parsing of JBP_CONFIG* configurations

(data []byte, out interface{})

Source from the content-addressed store, hash-verified

20
21// ValidateFields is used to detect unknown fields during parsing of JBP_CONFIG* configurations
22func (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}

Callers 15

loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95
loadConfigMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected