File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed
modules/swagger-codegen/src/main/resources/ruby Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ class {{classname}}
5
5
basePath = "{ {basePath} }"
6
6
# apiInvoker = APIInvoker
7
7
8
- def self.escapeString(string)
9
- URI.encode(string.to_s)
10
- end
11
-
12
8
{ {#operation} }
13
9
{ {newline} }
14
10
# { {summary} }
@@ -33,7 +29,7 @@ class {{classname}}
33
29
}.merge(opts)
34
30
35
31
#resource path
36
- path = "{ {path} }".sub('{ format} ','json'){ {#pathParams} }.sub('{ ' + ' {{baseName} }' + '}', escapeString( { {paramName} }) )
32
+ path = "{ {path} }".sub('{ format} ','json'){ {#pathParams} }.sub('{ ' + ' {{baseName} }' + '}', { {paramName} })
37
33
{ {/pathParams} }{ {newline} }
38
34
39
35
# pull querystring keys from options
Original file line number Diff line number Diff line change @@ -74,11 +74,6 @@ module Swagger
74
74
def interpreted_path
75
75
p = self.path.dup
76
76
77
- # Fill in the path params
78
- self.params.each_pair do |key, value|
79
- p = p.gsub("{ #{key} }", value.to_s)
80
- end
81
-
82
77
# Stick a .{ format} placeholder into the path if there isn't
83
78
# one already or an actual format like json or xml
84
79
# e.g. /words/blah => /words.{ format} /blah
You can’t perform that action at this time.
0 commit comments