We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31a58b9 commit e586b60Copy full SHA for e586b60
1 file changed
.github/docs/openapi3.txt
@@ -820,6 +820,13 @@ type Loader struct {
820
// ReadFromURIFunc allows overriding the any file/URL reading func
821
ReadFromURIFunc ReadFromURIFunc
822
823
+ // JoinFunc allows overriding how relative $ref paths are resolved against
824
+ // a base path. When set, it is called instead of the default join logic
825
+ // that uses path.Dir and path.Join. This is useful when loading specs from
826
+ // non-filesystem sources (e.g. git objects, remote archives) where the base
827
+ // path follows a different convention than filesystem paths.
828
+ JoinFunc func(basePath *url.URL, relativePath *url.URL) *url.URL
829
+
830
Context context.Context
831
832
// Has unexported fields.
0 commit comments