Skip to content

Commit bdd1d16

Browse files
committed
remove {{newLine}} and replace tab wtih 2 spaces
1 parent 8b4a077 commit bdd1d16

File tree

4 files changed

+36
-36
lines changed

4 files changed

+36
-36
lines changed

modules/swagger-codegen/src/main/resources/ruby/api.mustache

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ class {{classname}}
1212
{{#operation}}
1313
{{newline}}
1414
# {{summary}}
15-
# {{notes}}{{newLine}}
16-
{{#allParams}}{{^optional}}{{newLine}} # @param {{paramName}} {{description}}
17-
{{/optional}}{{/allParams}}{{#allParams}}{{#optional}}{{newLine}} # @option opts [{{dataType}}] :{{baseName}} {{description}}
18-
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}{{newLine}}
15+
# {{notes}}
16+
{{#allParams}}{{^optional}} # @param {{paramName}} {{description}}
17+
{{/optional}}{{/allParams}}{{#allParams}}{{#optional}} # @option opts [{{dataType}}] :{{baseName}} {{description}}
18+
{{/optional}}{{/allParams}} # @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
1919
def self.{{nickname}} ({{#allParams}}{{paramName}}{{#defaultValue}} = {{{defaultValue}}}{{/defaultValue}}, {{/allParams}}opts={})
2020
query_param_keys = [{{#queryParams}}:{{paramName}}{{#hasMore}},{{/hasMore}}{{/queryParams}}]
2121

@@ -61,10 +61,10 @@ class {{classname}}
6161
post_body = array
6262
else
6363
if body.respond_to?("to_body".to_sym)
64-
post_body = body.to_body
65-
else
66-
post_body = body
67-
end
64+
post_body = body.to_body
65+
else
66+
post_body = body
67+
end
6868
end
6969
end
7070
{{/bodyParam}}

samples/client/petstore/ruby/lib/pet_api.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def self.updatePet (body, opts={})
5252
post_body = array
5353
else
5454
if body.respond_to?("to_body".to_sym)
55-
post_body = body.to_body
56-
else
57-
post_body = body
58-
end
55+
post_body = body.to_body
56+
else
57+
post_body = body
58+
end
5959
end
6060
end
6161

@@ -112,10 +112,10 @@ def self.addPet (body, opts={})
112112
post_body = array
113113
else
114114
if body.respond_to?("to_body".to_sym)
115-
post_body = body.to_body
116-
else
117-
post_body = body
118-
end
115+
post_body = body.to_body
116+
else
117+
post_body = body
118+
end
119119
end
120120
end
121121

samples/client/petstore/ruby/lib/store_api.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def self.placeOrder (body, opts={})
9292
post_body = array
9393
else
9494
if body.respond_to?("to_body".to_sym)
95-
post_body = body.to_body
96-
else
97-
post_body = body
98-
end
95+
post_body = body.to_body
96+
else
97+
post_body = body
98+
end
9999
end
100100
end
101101

samples/client/petstore/ruby/lib/user_api.rb

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def self.createUser (body, opts={})
5252
post_body = array
5353
else
5454
if body.respond_to?("to_body".to_sym)
55-
post_body = body.to_body
56-
else
57-
post_body = body
58-
end
55+
post_body = body.to_body
56+
else
57+
post_body = body
58+
end
5959
end
6060
end
6161

@@ -112,10 +112,10 @@ def self.createUsersWithArrayInput (body, opts={})
112112
post_body = array
113113
else
114114
if body.respond_to?("to_body".to_sym)
115-
post_body = body.to_body
116-
else
117-
post_body = body
118-
end
115+
post_body = body.to_body
116+
else
117+
post_body = body
118+
end
119119
end
120120
end
121121

@@ -172,10 +172,10 @@ def self.createUsersWithListInput (body, opts={})
172172
post_body = array
173173
else
174174
if body.respond_to?("to_body".to_sym)
175-
post_body = body.to_body
176-
else
177-
post_body = body
178-
end
175+
post_body = body.to_body
176+
else
177+
post_body = body
178+
end
179179
end
180180
end
181181

@@ -358,10 +358,10 @@ def self.updateUser (username, body, opts={})
358358
post_body = array
359359
else
360360
if body.respond_to?("to_body".to_sym)
361-
post_body = body.to_body
362-
else
363-
post_body = body
364-
end
361+
post_body = body.to_body
362+
else
363+
post_body = body
364+
end
365365
end
366366
end
367367

0 commit comments

Comments
 (0)