Daniel Ge
dd1ed12318
Make connection failures visible with generated Ruby SDKs ( #3640 )
...
* Make connection failures visible in Ruby SDK
The underlying HTTP library, Typhoeus, requires you to be explicit about
error handling. Unfortunately, this also means that we can't assume that
`response.success?` will be false only when the HTTP status code is not
a 200; it could also be false when the request fails (timeouts, TLS
verification issues, etc.). This commit adds explicit error handling for
these cases.
* Update samples
2016-08-30 10:28:07 +08:00
Ville Skyttä
b4c139f19b
Spelling fixes
2016-08-27 02:34:33 +03:00
Cliffano Subagio
aba2d35a18
Fix unknown parameter on api_client's update_params_for_auth method.
2016-08-09 19:11:26 +10:00
Joel Meador
950fb43fdf
fix spelling in ruby ApiClient: Configuraiton -> Configuration
2016-08-05 14:36:08 -04:00
wing328
8c357dd1d6
fix validation for optional parameters/properties for ruby
2016-08-01 16:50:11 +08:00
Andy
dfe4944552
Fix #3400 - incorrect MinLength and MaxLength on partial_model_generic.mustache template ( #3415 )
...
* fix maxLength and Regexp issue
* more fix
* revert some changes
2016-07-20 16:52:07 +08:00
wing328
d780e3a5f5
fix #3400 (ruby minLenght, maxLength)
2016-07-19 15:16:07 +08:00
wing328
069a6b2917
fix defeault rspec test for ruby, update security petstore
2016-07-14 18:22:01 +08:00
ircecho
66619b1a09
fix[ruby]: Problem with List of Enum
...
Fixes #3323
2016-07-12 18:21:34 +02:00
wing328
785d1a5648
add option to set ssl host setting in ruby client
2016-07-04 22:13:25 +08:00
wing328
a18fb4ec8b
Merge pull request #3236 from cliffano/master
...
Disable path HTML-escaping in Ruby api template
2016-07-01 14:45:01 +08:00
wing328
c2f0397d5c
minor fix to ruby test cases
2016-06-30 15:40:35 +08:00
Cliffano Subagio
8bacbfb691
Only use Content-Disposition's filename as prefix when it exists.
2016-06-30 09:42:25 +10:00
Cliffano Subagio
b6eb81cbef
Move path unescaping from DefaultGenerator to Ruby api template.
2016-06-29 09:46:41 +10:00
Cliffano Subagio
af77d94750
[Ruby] Add params_encoding configuration to be passed to api_client's request options.
2016-06-28 15:22:34 +10:00
wing328
f482132c66
Merge branch 'master' of https://github.com/sdavis-r7/swagger-codegen into sdavis-r7-master
...
Conflicts:
modules/swagger-codegen/src/main/resources/php/model.mustache
modules/swagger-codegen/src/main/resources/php/model_generic.mustache
2016-06-27 16:20:44 +08:00
wing328
f04df9a163
fix #3215 and enum array issue in parameter check
2016-06-26 19:17:25 +08:00
Scott Davis
80666394f6
CVE-2016-5641
2016-06-23 06:06:21 -07:00
wing328
aeaf60713f
Merge branch 'feature/ruby_enum_support2' of https://github.com/zlx/swagger-codegen into zlx-feature/ruby_enum_support2
...
Conflicts:
samples/client/petstore/ruby/README.md
samples/client/petstore/ruby/lib/petstore/models/additional_properties_class.rb
samples/client/petstore/ruby/lib/petstore/models/mixed_properties_and_additional_properties_class.rb
samples/client/petstore/ruby/lib/petstore/models/read_only_first.rb
2016-05-26 17:20:49 +08:00
wing328
29008b5802
add licence template for ruby api client
2016-05-25 00:48:31 +08:00
wing328
568fa4f514
add apache license to remaining ruby files (test, spec, etc)
2016-05-24 23:20:23 +08:00
wing328
c7110debee
update ruby api client to use apache v2 license
2016-05-24 17:50:28 +08:00
Newell Zhu
24a0ced972
regenerate ruby spec file
2016-05-23 21:30:40 +08:00
Newell Zhu
942b015c8f
Add normal class enum support
2016-05-23 20:54:30 +08:00
wing328
bc44f74786
Merge pull request #2912 from zlx/feature/ruby_enum_support
...
Add Ruby enum support
2016-05-21 17:39:56 +08:00
Newell Zhu
a7ca3870df
remove ruby model leading space
2016-05-21 17:18:53 +08:00
wing328
c6f03806df
Replaced {{mediaType}} with {{{mediaType}} to keep the original media
2016-05-20 17:48:47 +08:00
Newell Zhu
f45d6a4d60
Generate ruby enum
2016-05-20 08:44:53 +08:00
Newell Zhu
6c626ccc7a
remove tailing spaces
2016-05-17 19:53:36 +08:00
wing328
31daa2b092
update ruby test files
2016-05-10 14:56:14 +08:00
wing328
d54877b5d3
add ruby spec for configuration, api client, replace should with expect
2016-05-10 14:18:06 +08:00
Griffin Schneider
e5ab34b658
Replace 'BEARER' with 'Bearer' everywhere.
...
RFC6750 indicates that the correct header format is 'Bearer <token>',
not 'BEARER <token>'.
2016-05-05 16:14:45 -04:00
Brian Hou
1361bb7c0b
Fix ruby model boolean attributes
2016-04-26 10:21:16 -07:00
wing328
354449ebfe
add validation to method parameters
2016-04-26 00:06:44 +08:00
wing328
4854b79a31
add pattern check to ruby model
2016-04-25 22:23:23 +08:00
wing328
0e58265eb5
use instance variable in validation rule
2016-04-25 21:52:37 +08:00
wing328
e17a620506
add methods to validate the ruby object
2016-04-25 19:18:05 +08:00
wing328
3c36f1df37
use ArgumentError in ruby model
2016-04-25 17:45:32 +08:00
wing328
ab986a7228
add more validation test for ruby model
2016-04-25 17:36:32 +08:00
wing328
e143c6cd2f
add validation to ruby model
2016-04-25 17:07:42 +08:00
wing328
37600e1172
add default value to gem spec
2016-04-20 18:49:29 +08:00
wing328
ccc52c2554
update gem spec
2016-04-19 23:41:26 +08:00
Kevin Glinski
2beeabb33a
fixing typeos
2016-04-14 08:22:56 -04:00
wing328
44a4219e3e
fix swift mapping with int and number
2016-04-11 19:37:56 +08:00
wing328
45e903b41b
minor ruby code improvement
2016-04-09 17:47:21 +08:00
wing328
20f1e97df3
fix typo in readme
2016-03-30 20:58:18 +08:00
wing328
d78113be95
fix summary tab in ruby api
2016-03-19 11:16:02 +08:00
wing328
9e45a99e60
udpate ruby api doc
2016-03-19 11:09:49 +08:00
xhh
4100a8537b
Display parameter's default value for operations
...
Done for Java clients (default, jersey2, okhttp-gson), Ruby client and
JavaScript client.
2016-03-17 16:22:36 +08:00
wing328
7b31dabe77
fix perl, ruby auth doc in readme
2016-03-16 14:58:19 +08:00