vishal khawarey
0ca60352e2
required tag is used in model, allows null values ( #3923 )
...
* required tag is used in model, allows null values
* updated petstore api for CI
* dont raise exception for 0 or false
2016-10-07 15:26:05 +08:00
Charles
d4f9a16cf6
Cgardens nested object regex ( #3879 )
...
* stop parsing key of object at first comma.
* update samples
2016-10-02 16:32:17 +08:00
Ville Skyttä
735390f633
[Python, Ruby, PHP] Validate min/maxItems ( #3734 )
...
* python: Validate min/maxItems
* ruby: Validate min/maxItems
* lumen: Validate min/maxItems
* php: Validate min/maxItems
2016-09-08 17:33:59 +08:00
Cliffano Subagio
92eb722ced
[ruby] Add gemspec required_ruby_version setting. ( #3718 )
...
* [ruby] Add gemspec required_ruby_version setting.
* [ruby] Add gemspec required_ruby_version setting.
* Add gemRequiredRubyVersion option to Ruby client code generator.
2016-09-06 22:25:39 +08:00
wing328
e68b364479
update ruby regular expression to use \A
2016-09-05 16:06:38 +08:00
Masahiro Saito
92aa8ed767
[Ruby] Fix ambiguous regex ( #3716 )
...
* ruby: Fix ambiguous regex
* ruby: Add test for strict regex
2016-09-05 15:37:54 +08:00
Ville Skyttä
6bb0ea2e8a
ruby: Fix syntax error when pattern contains a single quote
2016-09-01 20:45:52 +03:00
wing328
4ea4488212
remove unnecessary change for ruby codegen
2016-08-31 15:57:04 +08:00
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
wing328
a58845bb0f
add function to handle missing delimiter in regex
2016-08-22 18:01:06 +08: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
1fde95f997
fix java okhttp (array of enum property)
2016-08-03 01:36:34 +08:00
wing328
0b8acb5b0c
set allowablevalues of inner enum's allowablevalues
2016-08-03 01:35:58 +08:00
wing328
8c357dd1d6
fix validation for optional parameters/properties for ruby
2016-08-01 16:50:11 +08:00
wing328
9489f7d3eb
clear import mapping for gnereators that do not use it
2016-07-26 14:40:29 +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
7c8333e2f8
update ruby samples
2016-07-14 16:19:05 +08:00
wing328
785d1a5648
add option to set ssl host setting in ruby client
2016-07-04 22:13:25 +08:00
wing328
3b022496cd
Merge branch 'update-ruby-sample' of https://github.com/chadrosen/swagger-codegen into chadrosen-update-ruby-sample
...
Conflicts:
samples/client/petstore/ruby/README.md
samples/client/petstore/ruby/docs/ArrayTest.md
samples/client/petstore/ruby/lib/petstore/models/array_test.rb
2016-06-30 11:20:28 +08:00
Chad Rosen
4a4151a751
update ruby samples by running the bin/ruby-petstore.sh
2016-06-29 13:19:37 -07:00
wing328
f1f01041ed
update ruby sample
2016-06-28 17:36:58 +08: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
f04df9a163
fix #3215 and enum array issue in parameter check
2016-06-26 19:17:25 +08:00
wing328
ecd80a3d70
add cpprest and samples
2016-06-14 16:33:50 +08: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
105b4b9199
new test case to cover model with array properties
2016-05-25 01:18:50 +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
a9b8150442
regenerate ruby client sample
2016-05-23 20:54:45 +08:00
Newell Zhu
f45d6a4d60
Generate ruby enum
2016-05-20 08:44:53 +08:00
wing328
a6068a585f
Merge branch 'feature/patch-2' of https://github.com/zlx/swagger-codegen into zlx-feature/patch-2
...
Conflicts:
samples/client/petstore/ruby/README.md
2016-05-17 21:05:37 +08:00
Newell Zhu
a62fa1c80c
replace old syntax for rspec
2016-05-17 20:25:27 +08:00
Newell Zhu
1c3f1b4bf8
regenerate ruby sample after remove tailing
2016-05-17 20:13:38 +08:00
wing328
2784db0604
fix escpaing " and \
2016-05-11 16:14:03 +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
wing328
3a80a4ff1e
fix double byte characters in description, upgrade to lang3
2016-05-06 16:36:45 +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
wing328
2111e9ef8d
add new sample files
2016-05-02 22:41:50 +08:00
wing328
d6158c4c55
fix uuid for java, php, ruby and csharp
2016-05-02 22:06:33 +08:00
wing328
90442db86d
skip overwriting ruby spec files
2016-04-29 11:10:52 +08:00
Brian Hou
1361bb7c0b
Fix ruby model boolean attributes
2016-04-26 10:21:16 -07:00
wing328
875414ff64
add new ruby files
2016-04-26 00:32:01 +08: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
f02ee42594
merge from upstream
2016-04-14 08:35:05 -04:00
Kevin Glinski
2beeabb33a
fixing typeos
2016-04-14 08:22:56 -04:00
wing328
5d4c68b98a
new ruby file
2016-04-14 16:24:06 +08:00
wing328
8f70230906
update ruby test case
2016-04-14 16:19:39 +08:00
wing328
68cb030609
add new files for format test model
2016-04-11 22:11:53 +08:00
wing328
44a4219e3e
fix swift mapping with int and number
2016-04-11 19:37:56 +08:00
wing328
e3c73f5819
update ruby sample
2016-04-09 17:55:52 +08:00
wing328
074ae7e95d
update ruby sample
2016-04-09 17:47:45 +08:00
wing328
45e903b41b
minor ruby code improvement
2016-04-09 17:47:21 +08:00
wing328
eef07f4d84
add new files for perl, php, ruby
2016-03-30 22:38:53 +08:00
wing328
2104ef3192
doc for new models
2016-03-30 21:09:34 +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
47bb5689d9
better hanlding of model name starting with number
2016-03-17 11:49:06 +08:00
wing328
7b31dabe77
fix perl, ruby auth doc in readme
2016-03-16 14:58:19 +08:00
wing328
e10c28596c
update user-agent for Ruby
2016-03-15 11:41:47 +08:00
xhh
7505b167b7
Ruby docs: add require and print statements
2016-03-14 15:42:59 +08:00
wing328
a529d9dfe0
push new git_push and .gitinore file
2016-03-12 18:01:53 +08:00
wing328
637bdd2f50
add git_push and gitignore to most client generators
2016-03-12 17:35:25 +08:00
xhh
d274af4d4a
Ruby docs: add sample code of configuring auths
2016-03-11 19:05:27 +08:00
xhh
1df0923525
Ruby: improve handling of default values and examples for parameters in docs
2016-03-11 15:23:55 +08:00
xhh
eafcc2427d
Some improvements on Ruby docs
2016-03-10 17:19:18 +08:00
xhh
96707e1fea
Remove obsolete test files
2016-03-09 19:53:19 +08:00
xhh
91bae765ef
Some fixes to Ruby docs on links and File parameter
2016-03-09 19:36:28 +08:00
xhh
43d2df9753
Delete docs files of Ruby Petstore for regenerating
...
with same file names but in different case
2016-03-09 19:34:59 +08:00
xhh
2c64b885bb
Ruby: add auto-generated documentation in Markdown
2016-03-09 17:18:15 +08:00
xhh
53d8a31bd3
Ruby client: update Petstore sample, fix model import
2016-03-04 15:41:27 +08:00
xhh
8e4f9fdc7c
Add test cases for empty "object" type to Ruby Petstore
...
And fix the deserialization of empty "object" property
2016-03-03 20:36:15 +08:00
wing328
f68e93c662
better local variable naming for ruby, python and php
2016-02-28 11:48:14 +08:00
xhh
52c9d67025
Update petstore spec and fix tests
2016-02-25 12:20:17 +08:00
xhh
84c6b869f8
Ruby client: handle empty/reserved operation id
...
by using a normalized one instead of throwing errors
2016-02-25 11:48:30 +08:00
xhh
a21493f2db
Ruby: fix class name reference of nested model
...
and model name in underscore format, e.g. "my_response".
Closes #2140
2016-02-18 15:29:31 +08:00
wing328
81593bc4f6
add delay script, update CI test to run ruby test first
2016-02-12 18:46:19 +08:00
Tatsuki Sugiura
0ea7ae1c16
ruby: Add test for boolean convertion.
2016-02-10 19:18:03 +09:00
wing328
5a53814346
add api info as file header to ruby templates
2016-01-31 17:08:47 +08:00
Helge Rausch
f85f885191
Don't force explicit configuration of CA cert location
...
In order to allow openssl to figure out the location of CA certificates
on its own, don't apply the `ssl_ca_cert` configuration parameter if it
is not explicitly set.
2016-01-29 12:18:27 +01:00
xhh
172da5b2d8
Merge branch 'master' into ruby-binary
...
Conflicts:
samples/client/petstore/ruby/lib/petstore/api/pet_api.rb
2016-01-29 12:02:30 +08:00
wing328
e4a991da0c
add auto-generated test case for ruby
2016-01-26 23:15:02 +08:00
xhh
8c19626095
Handle "binary" as String in Ruby client
...
as it seems weird to handle byte array (array of integer) in Ruby
2016-01-25 12:47:59 +08:00
xhh
aad0547b40
Ruby: support binary (byte array) for body parameter and response
2016-01-21 18:01:03 +08:00
xhh
8ff488cc01
Fix Ruby tests of the Petstore sample
2016-01-20 14:47:03 +08:00
wing328
078f68a211
Merge pull request #1876 from xhh/file-downloading-fixes
...
File downloading improvements for Ruby and Java
2016-01-15 11:25:25 +08:00