MCPcopy Create free account
hub / github.com/getkin/kin-openapi / loadFromURIInternal

Method loadFromURIInternal

openapi3/loader.go:99–105  ·  view source on GitHub ↗
(location *url.URL)

Source from the content-addressed store, hash-verified

97}
98
99func (loader *Loader) loadFromURIInternal(location *url.URL) (*T, error) {
100 data, err := loader.readURL(location)
101 if err != nil {
102 return nil, err
103 }
104 return loader.loadFromDataWithPathInternal(data, location)
105}
106
107func (loader *Loader) allowsExternalRefs(ref string) (err error) {
108 if !loader.IsExternalRefsAllowed {

Callers 2

LoadFromURIMethod · 0.95
resolveRefAndDocumentMethod · 0.95

Calls 2

readURLMethod · 0.95

Tested by

no test coverage detected