LoadFromDataWithPath takes the OpenAPI document data in bytes and a path where the resolver can find referred elements and returns a *T with all resolved data or an error if unable to load data or resolve refs.
(data []byte, location *url.URL)
| 181 | // LoadFromDataWithPath takes the OpenAPI document data in bytes and a path where the resolver can find referred |
| 182 | // elements and returns a *T with all resolved data or an error if unable to load data or resolve refs. |
| 183 | func (loader *Loader) LoadFromDataWithPath(data []byte, location *url.URL) (*T, error) { |
| 184 | loader.resetVisitedPathItemRefs() |
| 185 | return loader.loadFromDataWithPathInternal(data, location) |
| 186 | } |
| 187 | |
| 188 | func (loader *Loader) loadFromDataWithPathInternal(data []byte, location *url.URL) (*T, error) { |
| 189 | if loader.visitedDocuments == nil { |