Zack Lemmon
f3da691a72
Fix typo in Ruby examples/mustache files ( #5773 )
2017-06-05 11:19:29 +08:00
Cliffano Subagio
ea30a4a7f8
[Ruby] Chunked file download ( #5718 )
...
* [Ruby] Modify file download to be written in chunks in order to handle large files. #5704
* [Ruby] Update Ruby Petstore with file download improvement. #5704
2017-05-29 14:56:48 +08:00
wing328
0a67696de8
Merge branch 'empty_classes' of https://github.com/bbdouglas/swagger-codegen into bbdouglas-empty_classes
2017-05-16 17:51:42 +08:00
wing328
fd3cae6c4b
rename .swagger folder to .swagger-codegen
2017-05-09 17:07:45 +08:00
wing328
3744a3f8f5
add option to skip client side validation in ruby client ( #5528 )
2017-05-02 21:30:59 +08:00
wing328
1277db61bd
[Ruby] add generator version to Ruby template ( #5459 )
...
* add generator version to ruby template
* remove tab in java generator
2017-04-23 22:41:56 +08:00
Benjamin Douglas
9058099e5b
Add alias type definitions for Java
...
When a spec defines a Model at the top level that is a non-aggretate type (such
as string, number or boolean), it essentially represents an alias for the simple
type. For example, the following spec snippet creates an alias of the boolean
type that for all intents and purposes acts just like a regular boolean.
definitions:
JustABoolean:
type: boolean
This can be modeled in some languages through built-in mechanisms, such as
typedefs in C++. Java, however, just not have a clean way of representing this.
This change introduces an internal mechanism for representing aliases. It
maintains a map in DefaultCodegen that tracks these types of definitions, and
wherever it sees the "JustABoolean" type in the spec, it generates code that
uses the built-in "Boolean" instead.
This functionality currenlty only applies to Java, but could be extended to
other languages later.
The change adds a few examples of this to the fake endpoint spec for testing,
which means all of the samples change as well.
2017-04-17 12:58:31 -07:00
Paŭlo Ebermann
ce41a343d8
Updating all samples (except feign) ( #5281 )
2017-04-02 17:01:15 +08:00
Paŭlo Ebermann
db71d97370
Updating samples after #5232 . ( #5243 )
...
* Updating samples after #5232 .
* Fix tests after #5232 .
* Fix Javascript client tests.
* JaxRS server: set serverPort only when not given from outside.
* Update JaxRS sample creator scripts to fix serverPort.
* Preliminary test fix for JaxRS server generators.
* Updating samples for JaxRS with Jersey1/2.
* Updating JaxRS samples again.
2017-03-30 01:28:53 +08:00
Paŭlo Ebermann
4ec23e6694
Update samples for Ruby-Client + Rails server. ( #5214 )
2017-03-27 13:27:13 +08:00
wing328
8fb71b46db
cache module directory to improve CI performance ( #5025 )
2017-03-11 16:59:17 +08:00
wing328
4fe79f0078
Remove default format (JSON) from API operations ( #4987 )
...
* remove default format (json) and update ruby petstore
* update python petstore sample
* update php petstore sample
* update android petstore sample
* update java petstore sample
* update objc sample
* remove default format (json) from perl
2017-03-09 11:12:01 +08:00
Viktor Chukhantsev
35d3fb82ce
[Ruby] Can only use content-type application/json with ruby-client #4867 ( #4893 )
...
* Fix ruby-client work with modern content types, like application/api.vnd+json
* Add specs.
* Fix regexp.
* Regenerate petstore client.
2017-03-06 00:44:15 +08:00
wing328
157fcbc4aa
fix invalid spec, update petstore samples (jaxrs, ruby)
2017-01-19 16:54:16 +08:00
Kevin Locke
df0c54d043
Support the empty string as an enumeration value ( #4450 )
...
When a string enumeration has the empty string as one of its available
values, the generated code for many languages is invalid because the
empty string can not be used as an identifier. As with numbers and
symbols, provide a mapping to an English name which can be used as a
replacement. In this case, "empty" for the empty string/empty value.
Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2017-01-06 19:30:47 +08:00
Ezekiel Templin
e189388371
[Ruby] Add Rakefile and Gemfile ( #4448 )
...
* Add Rakefile, Gemfile, and update client generator
* Update sample
2016-12-22 21:37:12 +08:00
wing328
162352cb4b
Fix maximum, minimum for Integer
( #4335 )
...
* fix int/long max, min value (removing decimal)
* fix integer min/max in parameter
2016-12-07 19:29:36 +08:00
wing328
8153f0e89b
Fix test spec issue ( #4334 )
...
* fix issue with swagger spec (number => integer)
* remove space from spec
2016-12-07 16:46:41 +08:00
wing328
31d31b9466
[Ruby] use hasConsumes, hasProduces in ruby client ( #4310 )
...
* use hasConsumes, hasProduces in ruby client
* add new ruby files
2016-12-02 17:22:46 +08:00
wing328
90512e6326
Remove Apache license from API client generators ( #4197 )
...
* remove php apache license
* remove apache license from C#
* remove apache license in objc code
* remove license from swift 3 code
* remove apache license from perl code
* remove license from scala code
* remove license from ts, go, android, cpp, scala
* remove license from java api client
* restore clojure petstore files
* remove license from travis file
* clean up apache-related terms in php, ruby, python mustache tempaltes
* remove license from JS API cilent
2016-11-16 21:44:49 +08:00
wing328
39ffc0ae62
[Ruby] remove apache2 license from ruby api client ( #4149 )
...
* remove apache2 license from ruby api client
* remove license from gem spec
2016-11-16 16:38:15 +08:00
Chakrit Wichian
f6a02f4339
[ruby] Make sure super is always called for ApiError class. ( #4168 )
...
* [ruby] Make sure super is always called for ApiError class.
* Add test for Petstore::ApiError
2016-11-11 17:39:45 +08:00
wing328
935bdfe628
better handling of */*
2016-11-08 16:17:51 +08:00
Hamed R. Nik
af4b32178f
[ruby] Validate array correctly
...
It never throws error with any values in array. Every element should be validated against the enum.
2016-11-03 17:03:48 +00:00
wing328
47c387470c
fix required prop check for ruby client
2016-10-13 16:38:39 +08:00
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