From f28d967b42f60ae939793cf3ddc4bdb23d051ca1 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Sat, 25 Apr 2026 04:40:25 -0400 Subject: [PATCH] fix(jsonschema): log schema as string instead of byte slice slog logs []byte values as base64 rather than the raw content. Wrapping schemaJSON in string() makes debug output readable. Fixes https://github.com/helm/helm/issues/32076 Signed-off-by: Jeff Davis --- pkg/chart/common/util/jsonschema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/chart/common/util/jsonschema.go b/pkg/chart/common/util/jsonschema.go index 63ca0c274..7eecd7190 100644 --- a/pkg/chart/common/util/jsonschema.go +++ b/pkg/chart/common/util/jsonschema.go @@ -134,7 +134,7 @@ func ValidateAgainstSingleSchema(values common.Values, schemaJSON []byte) (reter if err != nil { return err } - slog.Debug("unmarshalled JSON schema", "schema", schemaJSON) + slog.Debug("unmarshalled JSON schema", "schema", string(schemaJSON)) // Configure compiler with loaders for different URL schemes loader := jsonschema.SchemeURLLoader{