lib/dato/api_client.rb in dato-0.6.3 vs lib/dato/api_client.rb in dato-0.6.5
- old
+ new
@@ -28,10 +28,14 @@
@token = token
@base_url = options[:base_url] || "https://#{subdomain}.datocms.com"
@extra_headers = options[:extra_headers] || {}
end
- response = Faraday.get("https://#{subdomain}.datocms.com/docs/#{subdomain}-hyperschema.json")
+ response = Faraday.get(
+ # FOR DEV
+ # "http://#{subdomain}.lvh.me:3001/docs/#{subdomain}-hyperschema.json"
+ "https://#{subdomain}.datocms.com/docs/#{subdomain}-hyperschema.json"
+ )
schema = JsonSchema.parse!(JSON.parse(response.body))
schema.expand_references!
schema.definitions.each do |type, schema|