add test, fix RemoteURLHandler field name

This commit is contained in:
Federico Bevione
2023-06-23 14:43:48 +02:00
committed by quobix
parent c99d552d9e
commit 572130c666
8 changed files with 6626 additions and 23 deletions

View File

@@ -18,9 +18,9 @@ type DocumentConfiguration struct {
// Schema must be set to "http/https".
BaseURL *url.URL
// RemoteDocumentGetter is a function that will be used to retrieve remote documents. If not set, the default
// RemoteURLHandler is a function that will be used to retrieve remote documents. If not set, the default
// remote document getter will be used.
RemoteDocumentGetter func(url string) (*http.Response, error)
RemoteURLHandler func(url string) (*http.Response, error)
// If resolving locally, the BasePath will be the root from which relative references will be resolved from.
// It's usually the location of the root specification.