Skip to content

Commit d2f6636

Browse files
committed
feat: make context a dedicated type
1 parent fa85aea commit d2f6636

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

httploader/httploader.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ import (
2323
"github.com/ory/jsonschema/v3"
2424
)
2525

26-
const ContextKey = "github.com/ory/jsonschema/v3/httploader.HTTPClient"
26+
type key string
27+
28+
const ContextKey key = "github.com/ory/jsonschema/v3/httploader.HTTPClient"
2729

2830
// Load implements jsonschemav2.Loader
2931
func Load(ctx context.Context, url string) (io.ReadCloser, error) {

0 commit comments

Comments
 (0)