William Cheng
2ed3d8cc86
Update python test ( #426 )
...
* update python test folders
* update python template
* update python samples
* fix python comment too long
* update ruby test case
2018-05-12 09:54:19 +08:00
William Cheng
0ad66f7fe5
fix ruby test case, update gemfile ( #425 )
2018-05-11 20:51:35 +08:00
William Cheng
e2d4f5b5ca
update ruby with oas2 before ci test ( #231 )
2018-04-26 13:15:04 +08:00
Jeremie Bresson
53597764c3
Add OpenAPI spec 3.0 support (beta)
...
Co-authored-by: Akihito Nakano <sora.akatsuki@gmail.com>
Co-authored-by: Jeremie Bresson <dev@jmini.fr>
Co-authored-by: Jim Schubert <james.schubert@gmail.com>
Co-authored-by: Martin Delille <martin@phonations.com>
Co-authored-by: Tomasz Prus <tomasz.prus@gmail.com>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2018-04-17 09:19:10 +02: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
87bbbc1a1b
Merge remote-tracking branch 'origin/master' into 230_merge_master
2017-06-05 23:27:11 +08:00
Zack Lemmon
f3da691a72
Fix typo in Ruby examples/mustache files ( #5773 )
2017-06-05 11:19:29 +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
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
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
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
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
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
f04df9a163
fix #3215 and enum array issue in parameter check
2016-06-26 19:17:25 +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
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
a62fa1c80c
replace old syntax for rspec
2016-05-17 20:25:27 +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
d6158c4c55
fix uuid for java, php, ruby and csharp
2016-05-02 22:06:33 +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
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
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
e3c73f5819
update ruby sample
2016-04-09 17:55:52 +08:00
wing328
eef07f4d84
add new files for perl, php, ruby
2016-03-30 22:38:53 +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
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
1df0923525
Ruby: improve handling of default values and examples for parameters in docs
2016-03-11 15:23:55 +08:00
xhh
96707e1fea
Remove obsolete test files
2016-03-09 19:53:19 +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