xhh
a24fee00cb
Support primitive response in Ruby client
2015-07-08 16:46:31 +08:00
xhh
f42f329ace
Parse "date" as Date in Ruby client
2015-07-08 13:10:28 +08:00
xhh
66d16cfeaf
Validate parameter against allowed values (enum)
2015-07-03 16:46:23 +08:00
xhh
846d282ba0
Add helper methods for last response
2015-07-01 18:48:31 +08:00
xhh
6f1dd5ce35
Store last response in a thread-safe way
2015-07-01 17:37:16 +08:00
xhh
108b2241c0
Validate model property against allowed values (enum)
...
when present with attribute setters
2015-07-01 17:18:29 +08:00
xhh
2d3d35cfd7
Rebuild Ruby petstore client
2015-06-26 16:37:58 +08:00
xhh
8c10e4f2b0
Remove unused code
2015-06-26 16:06:32 +08:00
xhh
0ac1ef266f
Avoid more monkey-patching
2015-06-26 16:04:18 +08:00
xhh
16e80c65d7
Avoiding monkey-patching in Ruby API client
2015-06-26 15:56:59 +08:00
xhh
621e3e7b1a
Add comments for some configuration options
2015-06-24 15:57:01 +08:00
xhh
19ee56592e
Allow customizing SSL CA certificate
...
by adding a `ssl_ca_cert` configuration option
2015-06-23 17:23:22 +08:00
xhh
46869df631
Make HTTP response accessible by storing the last response
...
so that users are able to retrieve, for example, rate-limit headers
from the response
2015-06-23 15:02:40 +08:00
xhh
3b6a3b4a38
Add logging for API call entry and result
2015-06-23 10:12:20 +08:00
xhh
229ea93627
Add debugging switch to Ruby generator
2015-06-23 10:06:01 +08:00
xhh
d6d707543d
Merge branch 'develop_2.0' into ruby-object-type
...
Conflicts:
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/RubyClientCodegen.java
2015-06-18 09:56:58 +08:00
xhh
7c355030f4
Add to_s method for models
2015-06-16 18:41:51 +08:00
xhh
ec8e5179cb
Remove unused comments
2015-06-15 16:46:30 +08:00
xhh
9d5928551b
Unify ClientError and ServerError into ApiError
...
in Ruby generator
2015-06-15 16:38:08 +08:00
xhh
e9c1dd7842
Regard bare "object" type as Object, add comments
...
The handling of base "object" type (without definions of
"additionalProperties") is similar to Java generator now.
2015-06-15 12:49:17 +08:00
xhh
4c8c6c3880
Rebuild Ruby Petstore sample
2015-06-12 20:18:50 +08:00
xhh
e38fc2c3da
Deserialize response for "object" type in Ruby client
2015-06-12 20:15:48 +08:00
xhh
44780e6e1b
Merge branch 'develop_2.0' into ruby-cli-option2
...
Conflicts:
modules/swagger-codegen/src/main/resources/ruby/swagger/version.mustache
2015-06-09 15:44:50 +08:00
wing328
5f6622c70d
rollback ruby template
2015-06-09 12:33:30 +08:00
wing328
d5cbbae182
rollback ruby swagger template
2015-06-09 12:26:02 +08:00
xhh
d2a82d56aa
Enable CLI options for Ruby generator
2015-06-09 10:16:52 +08:00
Ron
1c2d0656b0
Code reformatting
2015-06-07 11:56:08 -04:00
Tony Tam
6c57810128
rebuilt
2015-06-07 00:08:01 -07:00
xhh
0ffe53933d
Bug fix: "null" was used as post body for empty form parameters
...
The form parameters could be empty when all of them are optional and no
values are assigned to them.
2015-06-03 21:17:42 +08:00
xhh
2e285ed562
Support skipping SSL certification verification
...
in Ruby clients by e.g.:
SwaggerClient::Swagger.configure do |config|
config.verify_ssl = false
end
2015-06-03 12:49:09 +08:00
xhh
a29c3abeb8
Use File.separatorChar in Ruby generator, add comments
2015-05-29 12:05:47 +08:00
xhh
623a1278cf
Add test case for API key auth
2015-05-29 11:57:46 +08:00
xhh
95813714a5
Add support of HTTP basic and API key auth to Ruby codegen
2015-05-29 11:57:46 +08:00
xhh
9cf4c66331
Update method returning value comment
2015-05-21 11:30:30 +08:00
xhh
4702285184
Correct indentation
2015-05-20 21:08:14 +08:00
xhh
dde73d592d
Return nil in Ruby clients for operations that have no response type defined
2015-05-20 21:06:42 +08:00
xhh
312f1c6f25
Avoid the importPath field
2015-05-20 09:23:45 +08:00
xhh
792059f195
Avoid warnings for ruby gem building
2015-05-20 09:23:45 +08:00
xhh
6eaaa5cc69
Include base_object model into module structure
2015-05-20 09:23:44 +08:00
xhh
fcf1327c1f
Rename swagger-client to swagger_client
...
according to guides from rubygems: http://guides.rubygems.org/name-your-gem/
2015-05-20 09:23:44 +08:00
xhh
104bcc1f89
Organize generated Ruby code into a module
2015-05-20 09:23:43 +08:00
William Cheng
05ac516ffa
clean up ruby sample, remove commented code, bug fix
2015-05-18 04:30:26 +08:00
William Cheng
3de9b4bfc8
remove (duplicated) object_to_http_body and object_to_hash from swagger.rb
2015-05-17 23:47:55 +08:00
William Cheng
92a2011207
fix post model, update rspec
2015-05-17 23:38:51 +08:00
William Cheng
8710fbfde7
add base object
2015-05-17 23:36:13 +08:00
wing328
1f6a19b684
minor improvement to ruby api client accept and content-type header
2015-05-15 20:58:59 +08:00
wing328
47a8ef3031
fix required parameters in ruby
2015-04-30 17:01:36 +08:00
xhh
de21088619
Support optional body parameter
2015-04-16 18:20:36 +08:00
xhh
61bf7f49cc
Remove redundant blank lines
2015-04-16 15:56:08 +08:00
xhh
a819e4d523
Support optional parameters in Ruby client
...
* Pass optional parameters via the `opts` Hash
* Handle query parameters in a way similar to header/form parameters to
support parameter name normalization, e.g. the "additional_metadata"
key is passed for "additionalMetadata"
* Rename variables to be consistent: `query_params`, `header_params` and
`form_params`
* Remove unnecessary blank lines
2015-04-16 15:56:08 +08:00