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 <mr.jefedavis@gmail.com>
pull/32077/head
Jeff Davis 3 months ago
parent 4bd9e90aa0
commit f28d967b42

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

Loading…
Cancel
Save