Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dehort committed Dec 9, 2024
1 parent 2c2dc7c commit ef2de0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/common/utils/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"encoding/json"
"fmt"
"io"
"net/url"
"os"
"strings"
"sync"
"time"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ef2de0d

Please sign in to comment.