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

Lines changed: 3 additions & 1 deletion
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)