Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenAPI Tools
openapi-generator
Commits
51503d8a
Commit
51503d8a
authored
4 years ago
by
Павел Лавринович
Browse files
Options
Download
Email Patches
Plain Diff
nil instead of empty string for the dataType (samples)
parent
b4fa4aee
github/fork/plaurynovich-hubspot/feature/process-multiple-requests
1 merge request
!8431
[Ruby] Incorrect return types if multiple responses are defined (reopened)
Pipeline
#511
failed with stages
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
samples/client/petstore/ruby-faraday/lib/petstore/api/another_fake_api.rb
+1
-1
...etstore/ruby-faraday/lib/petstore/api/another_fake_api.rb
samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb
+6
-6
...client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb
samples/client/petstore/ruby-faraday/lib/petstore/api/fake_classname_tags123_api.rb
+1
-1
...by-faraday/lib/petstore/api/fake_classname_tags123_api.rb
samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb
+9
-9
.../client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb
samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb
+6
-6
...lient/petstore/ruby-faraday/lib/petstore/api/store_api.rb
samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb
+5
-5
...client/petstore/ruby-faraday/lib/petstore/api/user_api.rb
samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb
+1
-1
...client/petstore/ruby/lib/petstore/api/another_fake_api.rb
samples/client/petstore/ruby/lib/petstore/api/fake_api.rb
+6
-6
samples/client/petstore/ruby/lib/petstore/api/fake_api.rb
samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb
+1
-1
...store/ruby/lib/petstore/api/fake_classname_tags123_api.rb
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
+9
-9
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
samples/client/petstore/ruby/lib/petstore/api/store_api.rb
+6
-6
samples/client/petstore/ruby/lib/petstore/api/store_api.rb
samples/client/petstore/ruby/lib/petstore/api/user_api.rb
+5
-5
samples/client/petstore/ruby/lib/petstore/api/user_api.rb
samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api/usage_api.rb
+2
-2
...dynamic-servers/ruby/lib/dynamic_servers/api/usage_api.rb
samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api/usage_api.rb
+2
-2
...-alias-as-model/ruby-client/lib/petstore/api/usage_api.rb
with
60 additions
and
60 deletions
+60
-60
samples/client/petstore/ruby-faraday/lib/petstore/api/another_fake_api.rb
+
1
-
1
View file @
51503d8a
...
...
@@ -68,7 +68,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Client
'
,
200
=>
“
Client
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby-faraday/lib/petstore/api/fake_api.rb
+
6
-
6
View file @
51503d8a
...
...
@@ -58,7 +58,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
HealthCheckResult
'
,
200
=>
“
HealthCheckResult
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -192,7 +192,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Boolean
'
,
200
=>
“
Boolean
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -256,7 +256,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
OuterComposite
'
,
200
=>
“
OuterComposite
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -320,7 +320,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Float
'
,
200
=>
“
Float
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -384,7 +384,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
String
'
,
200
=>
“
String
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -587,7 +587,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Client
'
,
200
=>
“
Client
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby-faraday/lib/petstore/api/fake_classname_tags123_api.rb
+
1
-
1
View file @
51503d8a
...
...
@@ -68,7 +68,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Client
'
,
200
=>
“
Client
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby-faraday/lib/petstore/api/pet_api.rb
+
9
-
9
View file @
51503d8a
...
...
@@ -196,8 +196,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Array<Pet>
'
,
400
=>
''
,
200
=>
“
Array
&
lt
;
Pet
&
gt
;
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -266,8 +266,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Array<Pet>
'
,
400
=>
''
,
200
=>
“
Array
&
lt
;
Pet
&
gt
;
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -335,9 +335,9 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Pet
'
,
400
=>
''
,
404
=>
''
,
200
=>
“
Pet
“
,
400
=>
nil
,
404
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -545,7 +545,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
ApiResponse
'
,
200
=>
“
ApiResponse
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -623,7 +623,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
ApiResponse
'
,
200
=>
“
ApiResponse
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby-faraday/lib/petstore/api/store_api.rb
+
6
-
6
View file @
51503d8a
...
...
@@ -124,7 +124,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Hash<String, Integer>
'
,
200
=>
“
Hash
&
lt
;
String
,
Integer
&
gt
;
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -200,9 +200,9 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Order
'
,
400
=>
''
,
404
=>
''
,
200
=>
“
Order
“
,
400
=>
nil
,
404
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -270,8 +270,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Order
'
,
400
=>
''
,
200
=>
“
Order
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby-faraday/lib/petstore/api/user_api.rb
+
5
-
5
View file @
51503d8a
...
...
@@ -322,9 +322,9 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
User
'
,
400
=>
''
,
404
=>
''
,
200
=>
“
User
“
,
400
=>
nil
,
404
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -398,8 +398,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
String
'
,
400
=>
''
,
200
=>
“
String
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby/lib/petstore/api/another_fake_api.rb
+
1
-
1
View file @
51503d8a
...
...
@@ -68,7 +68,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Client
'
,
200
=>
“
Client
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby/lib/petstore/api/fake_api.rb
+
6
-
6
View file @
51503d8a
...
...
@@ -58,7 +58,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
HealthCheckResult
'
,
200
=>
“
HealthCheckResult
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -192,7 +192,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Boolean
'
,
200
=>
“
Boolean
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -256,7 +256,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
OuterComposite
'
,
200
=>
“
OuterComposite
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -320,7 +320,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Float
'
,
200
=>
“
Float
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -384,7 +384,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
String
'
,
200
=>
“
String
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -587,7 +587,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Client
'
,
200
=>
“
Client
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby/lib/petstore/api/fake_classname_tags123_api.rb
+
1
-
1
View file @
51503d8a
...
...
@@ -68,7 +68,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Client
'
,
200
=>
“
Client
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
+
9
-
9
View file @
51503d8a
...
...
@@ -196,8 +196,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Array<Pet>
'
,
400
=>
''
,
200
=>
“
Array
&
lt
;
Pet
&
gt
;
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -266,8 +266,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Array<Pet>
'
,
400
=>
''
,
200
=>
“
Array
&
lt
;
Pet
&
gt
;
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -335,9 +335,9 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Pet
'
,
400
=>
''
,
404
=>
''
,
200
=>
“
Pet
“
,
400
=>
nil
,
404
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -545,7 +545,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
ApiResponse
'
,
200
=>
“
ApiResponse
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -623,7 +623,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
ApiResponse
'
,
200
=>
“
ApiResponse
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby/lib/petstore/api/store_api.rb
+
6
-
6
View file @
51503d8a
...
...
@@ -124,7 +124,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Hash<String, Integer>
'
,
200
=>
“
Hash
&
lt
;
String
,
Integer
&
gt
;
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -200,9 +200,9 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Order
'
,
400
=>
''
,
404
=>
''
,
200
=>
“
Order
“
,
400
=>
nil
,
404
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -270,8 +270,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Order
'
,
400
=>
''
,
200
=>
“
Order
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/client/petstore/ruby/lib/petstore/api/user_api.rb
+
5
-
5
View file @
51503d8a
...
...
@@ -322,9 +322,9 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
User
'
,
400
=>
''
,
404
=>
''
,
200
=>
“
User
“
,
400
=>
nil
,
404
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
@@ -398,8 +398,8 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
String
'
,
400
=>
''
,
200
=>
“
String
“
,
400
=>
nil
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/openapi3/client/features/dynamic-servers/ruby/lib/dynamic_servers/api/usage_api.rb
+
2
-
2
View file @
51503d8a
...
...
@@ -60,7 +60,7 @@ module DynamicServers
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Object
'
,
200
=>
“
Object
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -122,7 +122,7 @@ module DynamicServers
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Object
'
,
200
=>
“
Object
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
samples/openapi3/client/features/generate-alias-as-model/ruby-client/lib/petstore/api/usage_api.rb
+
2
-
2
View file @
51503d8a
...
...
@@ -64,7 +64,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Object
'
,
200
=>
“
Object
“
,
}
new_options
=
opts
.
merge
(
...
...
@@ -130,7 +130,7 @@ module Petstore
return_type
=
opts
[
:debug_return_type
]
return_types_map
=
{
200
=>
'
Object
'
,
200
=>
“
Object
“
,
}
new_options
=
opts
.
merge
(
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets