Skip to content

Commit 33cb339

Browse files
update docs
1 parent a2d2ac5 commit 33cb339

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/docs/openapi3.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ var ErrURINotSupported = errors.New("unsupported URI")
9090
ErrURINotSupported indicates the ReadFromURIFunc does not know how to handle
9191
a given URI.
9292

93+
var IncludeOrigin = false
94+
IncludeOrigin specifies whether to include the origin of the OpenAPI
95+
elements Set this to true before loading a spec to include the origin of the
96+
OpenAPI elements Note it is global and affects all loaders
97+
9398

9499
FUNCTIONS
95100

@@ -790,9 +795,6 @@ type Loader struct {
790795
// IsExternalRefsAllowed enables visiting other files
791796
IsExternalRefsAllowed bool
792797

793-
// IncludeOrigin specifies whether to include the origin of the OpenAPI elements
794-
IncludeOrigin bool
795-
796798
// ReadFromURIFunc allows overriding the any file/URL reading func
797799
ReadFromURIFunc ReadFromURIFunc
798800

0 commit comments

Comments
 (0)