Skip to content

Commit e586b60

Browse files
docs: regenerate openapi3.txt after JoinFunc addition
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 31a58b9 commit e586b60

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/docs/openapi3.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,13 @@ type Loader struct {
820820
// ReadFromURIFunc allows overriding the any file/URL reading func
821821
ReadFromURIFunc ReadFromURIFunc
822822

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+
823830
Context context.Context
824831

825832
// Has unexported fields.

0 commit comments

Comments
 (0)