From ef2de0d60fdf6618e6672e45b61b5d26be696feb Mon Sep 17 00:00:00 2001 From: Derek Horton Date: Mon, 9 Dec 2024 17:03:01 -0600 Subject: [PATCH] Fix --- internal/common/utils/misc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/common/utils/misc.go b/internal/common/utils/misc.go index 0de9d65f..1d989cba 100644 --- a/internal/common/utils/misc.go +++ b/internal/common/utils/misc.go @@ -4,8 +4,8 @@ import ( "context" "encoding/json" "fmt" - "io" "net/url" + "os" "strings" "sync" "time" @@ -100,7 +100,7 @@ func SetRequestContextValue(c echo.Context, key interface{}, value interface{}) func LoadSchemas(cfg *viper.Viper, schemaNames []string) (schemas []*jsonschema.Schema) { for _, schemaName := range schemaNames { var schema jsonschema.Schema - file, err := io.ReadFile(cfg.GetString(schemaName)) + file, err := os.ReadFile(cfg.GetString(schemaName)) DieOnError(err) err = yaml.Unmarshal(file, &schema) DieOnError(err)