From 10f436ab26e4dff68e3e864246ab3dee9fd0ecca Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Fri, 22 Mar 2019 15:18:55 -0500 Subject: [PATCH] Minor change to avoid string cast Signed-off-by: Ian Howell --- pkg/chartutil/values.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/chartutil/values.go b/pkg/chartutil/values.go index c6ddd9024..acc5990cf 100644 --- a/pkg/chartutil/values.go +++ b/pkg/chartutil/values.go @@ -165,8 +165,8 @@ func ValidateAgainstSchema(values Values, schema Schema) error { if err != nil { return err } - schemaLoader := gojsonschema.NewStringLoader(string(schemaJSON)) - valuesLoader := gojsonschema.NewStringLoader(string(valuesJSON)) + schemaLoader := gojsonschema.NewBytesLoader(schemaJSON) + valuesLoader := gojsonschema.NewBytesLoader(valuesJSON) result, err := gojsonschema.Validate(schemaLoader, valuesLoader) if err != nil {