mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-06 04:20:11 +00:00
Locked in release for DO spec.
stupid thing is throwing 404’s today for the latest release. Screw it, lock it down!
This commit is contained in:
@@ -110,7 +110,9 @@ func ExampleNewDocument_fromWithDocumentConfigurationSuccess() {
|
||||
digitalOcean, _ := os.ReadFile("test_specs/digitalocean.yaml")
|
||||
|
||||
// Digital Ocean needs a baseURL to be set, so we can resolve relative references.
|
||||
baseURL, _ := url.Parse("https://raw.githubusercontent.com/digitalocean/openapi/main/specification")
|
||||
//baseURL, _ := url.Parse("https://raw.githubusercontent.com/digitalocean/openapi/main/specification")
|
||||
// locked this in to a release, because the spec is throwing 404's occasionally.
|
||||
baseURL, _ := url.Parse("https://raw.githubusercontent.com/digitalocean/openapi/9b763029ba805c3e0e56927fd6685d73bc27f3e8/specification")
|
||||
|
||||
// create a DocumentConfiguration that allows loading file and remote references, and sets the baseURL
|
||||
// to somewhere that can resolve the relative references.
|
||||
|
||||
Reference in New Issue
Block a user