File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ var ErrURINotSupported = errors.New("unsupported URI")
90
90
ErrURINotSupported indicates the ReadFromURIFunc does not know how to handle
91
91
a given URI.
92
92
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
+
93
98
94
99
FUNCTIONS
95
100
@@ -790,9 +795,6 @@ type Loader struct {
790
795
// IsExternalRefsAllowed enables visiting other files
791
796
IsExternalRefsAllowed bool
792
797
793
- // IncludeOrigin specifies whether to include the origin of the OpenAPI elements
794
- IncludeOrigin bool
795
-
796
798
// ReadFromURIFunc allows overriding the any file/URL reading func
797
799
ReadFromURIFunc ReadFromURIFunc
798
800
You can’t perform that action at this time.
0 commit comments