wing328
721f1c7720
update ruby samples
2018-03-13 14:45:42 +08:00
wing328
a59c325cb7
update dart, ruby petstore samples
2018-02-22 17:53:51 +08:00
William Cheng
aa6b217bb9
[Ruby] Add auto-generated rubocop config file ( #7637 )
...
* add rubocop to ruby api client
* add new files
* fix ruby generator test case
2018-02-12 14:08:02 +08:00
wing328
fb69703fe0
update ruby petstore samples
2017-12-07 23:55:51 +08:00
wing328
d2eb7cb35b
remove unused files from Ruby petstore client
2017-10-22 22:09:50 +08:00
wing328
4d994a2045
update ruby petstore samples
2017-10-20 22:17:09 +08:00
wing328
54d00084f7
update php, ruby petstore
2017-08-02 23:38:46 +08:00
wing328
e3a1e308c4
update smaples, skip ts angular test.
2017-07-22 17:27:10 +08:00
wing328
76481d1d80
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-07-02 22:43:08 +08:00
wing328
304a7ae19a
fix regex escape forward slash ( #5963 )
2017-07-02 20:51:45 +08:00
wing328
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +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
wing328
cf8a9a0de0
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-03 14:54:50 +08:00
Paŭlo Ebermann
ce41a343d8
Updating all samples (except feign) ( #5281 )
2017-04-02 17:01:15 +08:00
wing328
ad4de91d92
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-03-30 09:57:07 +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
3a48ba8bfd
Update all the samples.
...
(except clojure + scalatra, because those are broken, will fixed with later master merge.)
2017-03-13 19:50:10 +01:00
wing328
157fcbc4aa
fix invalid spec, update petstore samples (jaxrs, ruby)
2017-01-19 16:54:16 +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
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
935bdfe628
better handling of */*
2016-11-08 16:17:51 +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
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
wing328
1fde95f997
fix java okhttp (array of enum property)
2016-08-03 01:36:34 +08:00
wing328
9489f7d3eb
clear import mapping for gnereators that do not use it
2016-07-26 14:40:29 +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
wing328
f04df9a163
fix #3215 and enum array issue in parameter check
2016-06-26 19:17:25 +08:00
wing328
105b4b9199
new test case to cover model with array properties
2016-05-25 01:18:50 +08:00
wing328
c7110debee
update ruby api client to use apache v2 license
2016-05-24 17:50:28 +08:00
Newell Zhu
1c3f1b4bf8
regenerate ruby sample after remove tailing
2016-05-17 20:13:38 +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
wing328
875414ff64
add new ruby files
2016-04-26 00:32:01 +08:00
wing328
e143c6cd2f
add validation to ruby model
2016-04-25 17:07:42 +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