X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8c2b734ef1b597a3df3da34ee9e4cca4d7dd2662..94a979b5126e6bb4e4a1779e512131ffe32525c1:/lib/google/api_client/discovery/method.rb diff --git a/lib/google/api_client/discovery/method.rb b/lib/google/api_client/discovery/method.rb index 76bb741d76..3a06857c0e 100644 --- a/lib/google/api_client/discovery/method.rb +++ b/lib/google/api_client/discovery/method.rb @@ -108,7 +108,7 @@ module Google # @return [Addressable::Template] The URI template. def uri_template return @uri_template ||= Addressable::Template.new( - self.method_base.join(Addressable::URI.parse(@discovery_document['path'])) + self.method_base.join(Addressable::URI.parse("./" + @discovery_document['path'])) ) end @@ -187,6 +187,7 @@ module Google # @return [Addressable::URI] The URI after expansion. def generate_uri(parameters={}) parameters = self.normalize_parameters(parameters) + self.validate_parameters(parameters) template_variables = self.uri_template.variables upload_type = parameters.assoc('uploadType') || parameters.assoc('upload_type')