Clarify configuration evidence providers

This commit is contained in:
2026-11-07 15:47:17 +00:00
parent ac113291fc
commit 52f1d99994
7 changed files with 36 additions and 45 deletions

View File

@@ -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