Rubén Martínez
ded765bcb9
[C#] Fixed issue #1126 with invalid generation of C# children models in allOf clauses ( #1127 )
...
* Run ./bin/utils/ensure-up-to-date to re-generate samples run in the CI.
* Fixed issue #1126 . DefaultCodegen now sets the hasChildren property of CodegenModel when children models are added to the model. Changed the modelGeneric.mustache template to decide whether to include a base validation model (for children to inherit) based on the hasChildren property, and not the discriminator property.
* Run the ./bin/utils/ensure-up-to-date script after fixing the issue #1126
* Reverted modification in go samples, performed by ./bin/utils/ensure-up-to-date, that are failing in CI.
This partially reverts commit 2168df0f82d987ff8d50963d34efb269b015ef98.
2018-10-15 13:13:05 +08:00
Christophe Bornet
34409bc0d8
Update spring-cloud generator to use openfeign ( #1191 )
2018-10-14 12:23:50 +08:00
Nico König
9c736731f2
fix: fix return type for api interface ( #1218 )
2018-10-12 17:48:06 +08:00
Tomasz Prus
71aa421179
fix: python/asyncio no-ssl-verify affects verification of server certs only ( #1211 )
...
Bug fix: python/asyncio no-ssl-verify affects verification of server certs
2018-10-12 17:05:01 +08:00
William Cheng
32c1d9eea4
Verify updatePetWithForm in Go client ( #1212 )
...
* verify updatePetWithForm in go client
* update wording
2018-10-11 15:40:43 +08:00
Rubén Martínez
529a638d11
[C#] Fix issue #1088 with generation of enum classes referenced from other objects ( #1089 )
...
* Run ./bin/utils/ensure-up-to-date to re-generate samples run in the CI.
* Fixed the #1088 issue by removing the update of enumeration properties while processing objects that reference them. Launched the ./bin/csharp-petstore-all.sh script.
2018-10-10 21:38:48 -04:00
Matthias Ramsauer
6acf45a108
x-www-form-urlencoded-body-fix ( #1187 )
...
* [go] x-www-form-urlencoded-body-fix
* [go] run scripts in bin and bin/security
2018-10-10 12:24:15 +08:00
Akihito Nakano
68a8f2976c
[Spring] Fix character conversion error ( #1195 )
...
* Fix character conversion error
ref https://tomcat.apache.org/tomcat-5.5-doc/servletapi/javax/servlet/ServletResponse.html
> To send character data, use the PrintWriter object returned by getWriter()
* Update samples
* Update spring-stubs
2018-10-09 18:29:58 +09:00
osharav
1a61456f71
Re-enabling typescript node test ( #1190 )
...
Explicitly adding node.js 8 type definitions before ClientResponse interface was removed due to deprecation.
2018-10-09 17:14:36 +08:00
William Cheng
22049db8c1
fix enum value, update dart petstore samples ( #1193 )
2018-10-09 07:08:04 +08:00
Kiran-Sivakumar
7d58f308d9
[Java][okhttp-gson] Fix bug when specifying grant-type (flow) for OAuth token retry ( #1183 )
...
* Fix bug when specifying grant-type for OAuth token retry
* Update samples
* Update security samples
2018-10-08 17:39:10 +08:00
stkrwork
52a112d90f
[C++][Restbed] Fix default value for Restbed ( #1186 )
...
* Start working on fixing default value in Restbed Server Api Template
* fix default value in DefaultCodegen
* Revert "fix default value in DefaultCodegen"
This reverts commit ce690069d25f79f4308240a611792a0dd87bb172.
* fix default value in cpprest
* update cpp restbed samples
2018-10-08 01:54:06 +08:00
William Cheng
999f472e4b
Refactor default and example values in Java generators ( #1045 )
...
* fix default, example for java okhttp
* update java feign samples
* update samples, doc
* add new doc for dart-jaguar
* update model template
* update jaxrs spec model
* update resteasy sample
* update java samples
2018-10-07 03:56:16 +08:00
William Cheng
aa31e42ce7
improve go code format without gofmt ( #1173 )
2018-10-05 23:27:33 +08:00
William Cheng
06d31cfedb
Better format for Ruby tests ( #1166 )
...
* better format for ruby test
* update ruby petstore
2018-10-04 23:53:46 +08:00
William Cheng
5490bb8e9c
update petstore
2018-10-03 18:36:12 +08:00
William Cheng
4e8844273b
Prepare 3.3.1-SNAPSHOT ( #1154 )
...
* update version
* update petstore samples
2018-10-02 09:40:27 +08:00
William Cheng
2b87b309ad
Rename environment variable for Go to post-process file ( #1091 )
...
* renmae Go post process file env variable
* add back samples/client/petstore/c/libcurl.licence
* keep go samples up-to-date
* update go petstore samples
* update go samples without formatting
2018-10-01 21:24:32 +08:00
Erik Timmers
dcc0b5e772
[elm] Fix Byte encoder/decoder names ( #1151 )
2018-10-01 21:20:41 +08:00
William Cheng
755dfe53de
Better handling of different types in Elm generator ( #1100 )
...
* better handling of different types in elm generator
* [elm] Fix toString for special cases
2018-10-01 15:27:10 +08:00
kemokemo
2040050e55
[Golang][go-gin-server] Fixed issue 1122 with workaround ( #1141 )
...
[Golang][go-gin-server] Fix path parameter naming
2018-10-01 15:25:14 +08:00
Antonio Bellezza
8b47984e3c
[Scala-Akka] Generate default values for optional model fields ( #1119 )
...
* Generate default values for optional model fields in scala-akka
Fix #1118
* Updated akka-client petstore with defaults for optional model fields
* update petstore sample with scalafmt
2018-09-29 21:21:06 +08:00
Erik Timmers
345b7ec7e5
[elm] Major refactoring; add discriminator support ( #1104 )
...
* Use the same name for all exposed encoder & decoders;
* Improve imports (limit exposures);
* Add support for OAS3 discriminators;
* Distinct between 0.18 & latest mustache files.
2018-09-29 12:13:04 +02:00
William Cheng
cbddb08468
Add post processing to files generated by Haskell generators ( #968 )
...
* add hfmt support (without updating the sample)
* update haskell httpclient samples with hfmt
* add code format option to haskell servant, minor bug fixes
* update code samples with hfmt
* update samples using stylish-haskell
* rename env variable
* update haskell samples with stylish-haskell
* regenerate haskell samples without stylish-haskell
* regenerate haskell servant sample
* update example-app & tests-integration for OAS2 code
2018-09-29 17:21:03 +08:00
William Cheng
f1f7bdd23f
Add nullable support to Python client ( #1073 )
...
* add nullable support to python client
* update PR template
2018-09-29 17:01:13 +08:00
Jaumard
df61cd9cb3
fix model generator for snake case open api definition ( #1076 )
2018-09-25 17:22:19 +08:00
William Cheng
8fb3b707a1
Add post processing to files generated by Python generators ( #1072 )
...
* add post process file to python generators
* update python samples with yapf
* revert sample change
2018-09-22 11:50:17 +08:00
Kiran-Sivakumar
0e045bee1b
[okhttp-gson] Add support for OAuth access token retry ( #1058 )
...
* Add support for access token retry in okhttp-gson lib
* Update expected number of generated files in test
* Update samples
* Update security samples
* Fix default user-agent and update samples
2018-09-20 19:29:59 +08:00
William Cheng
1b2f3fbfb6
Fix alias to map response ( #1067 )
...
* fix response reference to map
* update samples
* add null check for openapi
2018-09-20 19:29:33 +08:00
William Cheng
340466066c
Add file post-processing to Swift 3.x, 4.x generators ( #1069 )
...
* update all swift samples
* format swift code with swiftformat
* minor format fix
* rename environment variable
2018-09-20 20:29:25 +09:00
Thomas Hansen
ca9a4a2ff3
PR: Fix error when giving an array as parameter to an endpoint body r… ( #1037 )
...
* PR: Fix error when giving an array as parameter to an endpoint body request
* PR #1037 - Fix issue with array as parameter to operation
* update samples
* PHP - ObjectSerializer::sanitizeForSerialization(): manage \stdClass objects properly
* update samples
* bug fix: missing "use" clause
* update samples
* Changes after @ackintosh review
* update samples
2018-09-19 19:58:56 +09:00
Nico König
3027514242
feature: add scaffold for typescript axios template ( #892 )
...
* feature: add generator for typescript/axios
* feature: add sample scripts and sample code
* fix: set request body in data property
* feature: add samples and tests for typescript axios client
* test: add tests for typescript axios client
2018-09-18 14:23:52 +08:00
manhhavu
9e1dfc0837
[Swift4] Use CodeableHelper's dateformatter in encode() if configured ( #984 )
2018-09-17 14:27:47 +08:00
Dec12 | Fujigon
5c794a01f8
[Java][Jersey] add @Valid when bean validation is enabled ( #1019 )
...
* fix template to add @Valid to POJO fields regarding nest, in java-jersey
* regenerate with for scr in `ls ./bin/*jersey*.sh`; do sh $scr; done
* re-generate with ./bin/openapi3/jaxrs-jersey-petstore.sh
* update api template for jersey1
* re-generate samples
* re-generate samples
2018-09-16 22:36:20 +08:00
Vladislav Cheparin
5fc76ba834
[Java][Retrofit2] The part name is not added to the annotation ( #1029 )
...
* fixed retrofit2/formParams.mustache
* added play26 to retrofit2-all.sh
* fixed samples
2018-09-16 16:00:38 +08:00
ircecho
58e43ceeec
[DART2] Maps could not be deserialized in dart 2 ( #1007 )
...
* fix[dart2]: due to stronger type checking in dart 2, maps could not be deserialized
* rebuild dart2 petstore
2018-09-14 18:40:37 +08:00
William Cheng
fc35bb17d0
Add option to enable scalafmt for code formatting ( #1032 )
...
* add option to enable scalafmt for code formatting
* fix typo
2018-09-14 16:58:27 +08:00
William Cheng
29322da2f6
Dart (Jaguar) client generator ( #998 )
...
* generator for dart jaguar
* migrate to openapi-generator
* fix locale issue
* add auth generation for dart jaguar
* fix generation of jaguar api with auth (#1009 )
* update deps (#1016 )
* add CI tests for dart jaguar
* update dart jaguar bin script
* trigger build failure
* Revert "trigger build failure"
This reverts commit a7d8bfd47a93f0903932aeff4afefeb7aa4c5c4a.
2018-09-13 21:39:57 +08:00
William Cheng
95302efdfc
Add option to set Feign version ( #1005 )
...
* Add option to set Feign version
* add java feign 9x to CI
* update usage for Play
* fix duplicated artifactId
2018-09-13 10:32:09 +08:00
Juan Eugenio Abadie
2d99836e90
[C++] [cpp-rest-sdk] Check for null values ( #990 )
...
* Check whether a value is present but null
* Update Petstore sample
2018-09-11 00:15:44 +08:00
ircecho
6a1e560540
fix[dart2]: improved error reporting ( #1006 )
...
* fix[dart]: improved error reporting
* rebuilt dart2 petstore
* rebuilt dart2 petstore with dartfmt
2018-09-11 00:14:50 +08:00
Ilya Hrankoŭski
aa29219f8c
[Java][Feign] Add support for Feign 10 ( #977 ) ( #988 )
2018-09-09 18:11:59 +08:00
William Cheng
47b3210cb2
Add js-beautify support to JS generator ( #961 )
...
* add js-beautify support to JS generator
* replace tab with space
* update samples without JS_BEAUTIFY_PATH
2018-09-08 18:06:27 +08:00
Akihito Nakano
1ead8bcca5
[PHP] Drop support for PHP5.5 on php-client ( #993 )
...
* Drop suport for PHP5.5 on php-client
* Update samples
bin/php-petstore.sh
bin/openapi3/php-petstore.sh
* Update security samples
bin/security/php-petstore.sh
2018-09-07 17:39:33 +09:00
Yann Milin
c5463232d3
[PHP] Fix deserialize ApiException as a Model ( #757 )
...
* [PHP] Fix deserialize for default responses. Update samples
* [PHP] Update sample files
* Fix the distination ("-o") of petstore-security-test
* Clean up "petstore-security-test" folder
* Update petstore-security-test sample files
* Update petstore OpenAPI3 sample files
2018-09-07 00:52:59 +09:00
Matt Melling
a8cbae4dc8
[PHP] Upgrade php-cs-fixer to 2.12, enables PHP >= 7.2 support ( #769 )
...
* upgrade php-cs-fixer to 2.12
* ran petstore-security-test for php
* updating openapi3 php petstore example
2018-09-06 20:48:00 +09:00
Esteban Marin
b9e9f54dab
[Typescript] add missing type mapping ( #973 )
...
* #957 : add missing type mapping
* #957 : generate samples
2018-09-06 18:21:05 +08:00
Nathan Broadbent
5d259952b3
Added pry-byebug to debug Ruby client ( #979 )
2018-09-06 18:19:31 +08:00
William Cheng
e29f263941
Add perltidy to format Perl code ( #970 )
...
* add perl tidy without updating petstore samples
* incldue pl file, update samples
* use no backup option, perltidy on test.pl
2018-09-06 14:46:02 +08:00
William Cheng
39c734fc25
Better code format for Java (okhttp-gson) client ( #971 )
...
* better code format for java okhttp client
* update java petstore samples
2018-09-06 14:24:14 +08:00