Clarify configuration evidence providers
This commit is contained in:
@@ -32,9 +32,10 @@ func normalizeReport(value any) (any, error) {
|
||||
}
|
||||
|
||||
// DecodeYAMLReport decodes one YAML document from safe inspection output into
|
||||
// JSON-compatible values. Unsupported YAML meanings return an error; the result
|
||||
// is not a lossless representation of the input document. Scalar types follow
|
||||
// the resolved YAML tags; numeric-looking strings remain strings.
|
||||
// JSON-compatible values. Multiple documents, unsupported tags and non-string
|
||||
// mapping keys return an error. The result does not preserve formatting, comments
|
||||
// or framing. Scalar types follow resolved YAML tags; numeric-looking strings
|
||||
// remain strings.
|
||||
func DecodeYAMLReport(reader io.Reader) (any, error) {
|
||||
decoder := yaml.NewDecoder(reader)
|
||||
var doc yaml.Node
|
||||
|
||||
Reference in New Issue
Block a user