William Cheng
862fe79f32
Minor improvement to Go client generator, move test case ( #430 )
...
* move test cases to under fake endpoint
* remove trailing spaces in the template
* update samples
* add new file
* minor fix to OAS3 spec
2018-07-02 10:23:12 +08:00
John Wang
e960fe9512
[Golang][client] fix undefined: localVarFile ( #382 )
...
* fix undefined: localVarFile
* add required formData file endpoints to 2.0 and 3.0 specs
* streamline api.mustache update
* update sampels
* update samples
* update samples
* update samples bin/jaxrs-cxf-client-petstore.sh
* update samples
* update samples
* update samples run-all-petstore
* update samples
* update samples
* Trigger CI due to race condition
* update samples
* update samples
* Trigger CI due to previous timeout
* Trigger CI due to previous Shippable timeout
* Trigger CI due to previous Shippable race condition
2018-07-01 16:58:45 +08:00
Jeremie Bresson
b0c02d8ea6
Merge remote-tracking branch 'origin/3.1.x' into 4.0.x
...
# Conflicts:
# samples/server/petstore/kotlin-server/ktor/.openapi-generator/VERSION
# samples/server/petstore/kotlin-server/ktor/README.md
# samples/server/petstore/php-silex/.openapi-generator/VERSION
2018-06-25 19:09:41 +02:00
William Cheng
a897feef50
Fix alias to map in the model's properties ( #360 )
...
* add test case for ref to map (boolean) in fake petstore spec
* fix alias to map in model properties
* remove logging from new method
* update samples for the new map test case
* fix javadoc string
* skip testSanitizeNestedInvalidValue in php test
* skip test in php oas3 client
* add logic to handle outer enum
* update samples
* fix alias in model's allOf
* generate models for map def
* update petstore samples
* update petstore samples
2018-06-21 22:59:02 +08:00
Jeremie Bresson
b887efdc1c
Initial commit for 4.0.0-SNAPSHOT
2018-06-12 06:40:07 +02:00
Jeremie Bresson
c223f28171
Initial commit for 3.1.0-SNAPSHOT
2018-06-12 06:27:26 +02:00
Jérémie Bresson
8ae1c814d5
Prepare 3.0.2-SNAPSHOT ( #285 )
...
Set version `3.0.2-SNAPSHOT`.
Follow up from #280
2018-06-11 13:22:03 -04:00
Jérémie Bresson
1e5e1d4458
Prepare 3.0.1-SNAPSHOT ( #195 )
...
* Restore version to 3.0.0-SNAPSHOT
* Set version to 3.0.1-SNAPSHOT
* Run ensure-up-to-date
* Remove duplicated version declaration
2018-06-02 10:57:33 +08:00
Jérémie Bresson
059a3efe46
Regenerate samples ( #367 )
2018-05-08 16:44:51 +08:00
William Cheng
b1eac05b2b
Fix form datatype (array of string) ( #339 )
...
* fix data type for array of form parameters
* add test case to cover the form parameter issue
2018-05-06 22:17:47 +08:00
William Cheng
e2251084f2
Update the default value of Ruby client generator ( #320 )
...
* fix ruby client default value
* fix example value for ruby
2018-05-05 00:10:34 +08:00
wing328
1e999f289d
various fix for go petstore
2018-04-29 02:03:21 +08:00
William Cheng
e2d4f5b5ca
update ruby with oas2 before ci test ( #231 )
2018-04-26 13:15:04 +08:00
William Cheng
0736939c2a
Remove x-codegen-hasMore extensions ( #169 )
...
* remove x-codegen-hasMoreRequired from ruby template
* remove x-codegen-hasMore from html2 templates
* remove commented code
2018-04-21 12:49:27 +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
4cfbc118e8
renaming for openapi-generator
2018-03-13 14:41:23 +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
Renaud Amar
9272b3e768
[Ruby] Fix "build_from_hash" function for Ruby enums ( #6812 )
...
* Modify build_from_hash to compare value against enum's value rather than const name
* Updated Petstore sample
2017-11-01 21:47:22 +08:00
Stephan E
f78d958ec0
Fix ruby model generation with objects and additionalProperties ( #6816 )
...
* Fix model generation with objects and additionalProperties
* Generate Ruby Petstore
* Generate Ruby Security Petstore
2017-10-26 19:59:38 +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
c1f5de91bb
add comment, update ruby, php samples
2017-09-03 23:20:55 +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
18e6440bcc
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-30 00:12:34 +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
e1e5ac4d37
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-17 22:00:06 +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
413a00ef40
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-05-03 00:09:14 +08:00
wing328
3744a3f8f5
add option to skip client side validation in ruby client ( #5528 )
2017-05-02 21:30:59 +08:00
wing328
c8d9450db5
Merge remote-tracking branch 'origin/master' into 2.3.0
2017-04-23 22:46:10 +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
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
4ec23e6694
Update samples for Ruby-Client + Rails server. ( #5214 )
2017-03-27 13:27:13 +08:00
Paul Ebermann
5bb0f7a933
Update all samples.
2017-03-15 18:25:40 +01:00
Paŭlo Ebermann
e1b1edf958
Merge branch 'merge-2.3.0' into new-sync-master-to-2.3.0
2017-03-14 21:04:47 +01:00
Paul Ebermann
aba5abd15e
Update samples again after swagger-parser bump.
2017-03-14 12:54:11 +01:00
Paŭlo Ebermann
9be178b26a
Merge branch 'master' into new-sync-master-to-2.3.0
2017-03-13 21:42:41 +01: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
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