9299 Commits

Author SHA1 Message Date
William Cheng
d74c49b93d
better error handling in the r client (#13800) 2022-10-23 20:40:53 +08:00
William Cheng
0368987315
update java okhttp gson dependencies to newer versions (#13798) 2022-10-23 11:26:12 +08:00
William Cheng
f409fb6184
various improvements to java okhttp-gson client (#13794) 2022-10-23 10:52:54 +08:00
Andrew Hatch
232f354826
required vs optional JSON array validation (#13774) (#13777) 2022-10-22 21:06:00 +08:00
Andrew Hatch
9e5c919560
fix parameter ordering for RequestBody.create (#13778) (#13779) 2022-10-22 21:03:57 +08:00
William Cheng
ca56242e4f
[java][okhttp-gson] minor improvements (#13792)
* use replace instead of replaceAll

* avoid using instance to accessd static methods

* use entrySet instead of keySet

* use statis class instead of instance for static method

* update samples
2022-10-22 13:31:59 +08:00
Justin Black
ac3bb6830a
[python] Fixes endpoint overload type hint + required property not in properties (#13790)
* Adds endpoint overload type hint fix to template

* Samples regenerated

* Adds fix for required property not in properties

* Regenerates samples
2022-10-21 18:50:30 -07:00
William Cheng
a68c36e932
Update jackson core and databind to newer versions (#13755)
* update databind to newer version

* update jackson version

* update dep

* revert jersey1
2022-10-21 10:14:37 +08:00
William Cheng
892e4f5b3c
update oltu to newer version (#13782) 2022-10-21 09:15:37 +08:00
William Cheng
7a2c3f7188 update C# samples 2022-10-19 23:49:54 +08:00
Jason Finch
0d56ebc702
[csharp-netcore] Enum parameter serialization to use EnumMember value when provided. (#11448)
* Add modification to petstore yaml to support testing enum string resolve. Move csharp-netcore-net50 to point to new yaml schema.

* [csharp-netcore] - For enum's with an EnumMember Attribute use this value instead of enum.ToString().

-Regenerate csharp samples to accomodate change.

* fix: rebase on master.  Update samples.

* task (Samples): update csharp-netcore samples. (via generate-samples.sh)
2022-10-19 23:31:18 +08:00
Rade Martinović
514dbca08b
Updating org.apache.oltu.oauth2.client (#13411)
Updating the OAuth2 client (although obsolete, it's still productive in openapi-generator) due to security problems related to the underlying libraries
* sonatype-2022-3061
* sonatype-2012-0050

Update pom.mustache
2022-10-19 23:15:32 +08:00
Antti Leppä
11c43c3c2b
Added Kotlin Vert.x client (#13594)
* Initial version of Kotlin Vert.x client

* Initial version of Kotlin Vert.x client

* Initial version of Kotlin Vert.x client

* Fix for parseDateToQueryString issue in vert.x kotlin client

* Moved common methods from api to ApiClient in kotlin vert.x client

* Fixed issue with absolute URLs

* bearer auth for oauth

* empty request headers fix

* missing import and typo

* added uri template dependency

* added api abstractions to client generator

* added full import form infrastructure

* removed fail on unknown properties to response body parsing

* fixed error response parsing

* replace vertx client name to more unique

* multiline content type

* optional responses added to template

* additional annotations for kotlin client

* Added additionalModelTypeAnnotations parameter support to AbstractKotlinCodegen

* Updated samples and documents

* Fixed issues with gson and moshi serializers with kotlin-jvm-vertx client

* Added sample configs for kotlin-jvm-vertx clients with gson, jackson and moshi

* Added samples for kotlin-jvm-vertx clients with gson, jackson and moshi

* Included kotlin-jvm-vertx samples to test build

* Updated samples

Co-authored-by: Katja Danilova <katja.danilova@protonmail.com>
2022-10-19 22:29:34 +08:00
devhl-labs
0c1384b950
[csharp] Fixed data type for maps of maps (#13701)
* fixed data type for maps of maps

* added models to samples

* moved code to avoid a bug in the property generation
2022-10-19 17:13:11 +08:00
William Cheng
58f817276a Revert to c73704ce0832fc41210652399bfbb5f1668ec98a 2022-10-19 14:55:11 +08:00
William Cheng
de8d7e98c4 update databind to newer version 2022-10-19 14:52:18 +08:00
William Cheng
c73704ce08
[go-echo-server] update echo to newer version (#13732)
* update echo to newer version

* add github workflow

* minor fix

* add install

* go get

* install middleware

* test go api server

* trigger build

* test go-api-server

* Revert "test go api server"

This reverts commit 42f24e578ff5a0e0b2be5fa1c506be237ec4cbe0.

* Revert "Revert "test go api server""

This reverts commit 7ce773275b0c223208421eff9d84b64a079874be.

* update samples

* test go gin in github workflow

* go install

* Revert "go install"

This reverts commit ec099b48c138c2a03503bbf1de8995cbca2d7598.

* Revert "test go gin in github workflow"

This reverts commit 120516856eaa5adbeebc558a68be8e26797b8749.

* remove go api, echo server tests
2022-10-19 13:34:34 +08:00
David Chaiken
c22715ad1f
fix for issue #13722: send body for application/x-www-form-urlencoded data (#13723)
* fix for issue #13722: send body for application/x-www-form-urlencoded data

* fix python test_application_x_www_form_urlencoded_serialization

* x-www-form-urlencoded data needs to be percent encoded

* add verification endpoint test for x-www-form-urlencoded data

Co-authored-by: David Chaiken <dchaiken@pinterest.com>
2022-10-18 18:51:35 -07:00
William Cheng
803e2cdb60 update go samples 2022-10-18 23:47:01 +08:00
Maëlick
41255c1f18
Fix staticcheck ST1005 errors in generated Go client (#13633)
* Fix staticcheck ST1005 errors in go client

* Samples updated

* sample test fix for openapiv3 petstore go client
2022-10-18 22:46:49 +08:00
mm's
3f4e3afab2
[kotlin][KTOR] remove unnecessary dependencies (#13640)
* [kotlin][ktor] add set JSON as the ContentType header for ktor projects


samples


revert content type

* update samples

* fix multi-platform sample

* revert docs

* update samples and fix missing import on multiplatfrom

* add missing sample
2022-10-18 22:33:11 +08:00
Thomas Hansen
9c2757b4e1
[PHP] Reverted extra blank lines accidentally added by #13012 commit (#13717) 2022-10-17 22:36:19 +08:00
William Cheng
f864c6d226
Fix API service implementation class in java jaxrs when no model defined (#13716)
* fix api service impl in javajaxrs when no model defined

* update samples
2022-10-17 18:02:24 +08:00
William Cheng
02d99eaf12
add tests for go oenof datetime (#13713) 2022-10-17 17:37:02 +08:00
Jacob Halsey
c1c9cb2192
[rust] Fix generation for optional and nullable fields (double option pattern) (#13177)
* Fix generation for optional and nullable fields (double option pattern)

* Only import serde_with if necessary
2022-10-17 15:44:18 +08:00
feech
53dc385fc6
[java] [webclient] allow ndjson (#13674)
* fix 13673. include ndjson into consideration when client selects accepted type

* update examples
2022-10-17 15:01:54 +08:00
William Cheng
dc23ba3a23
fix example code reported by styler (#13707) 2022-10-17 01:49:39 +08:00
Andrew Hatch
c0a9f0ea51
[java][okhttp-gson] support JSON array values (#13672) 2022-10-17 01:35:58 +08:00
William Cheng
fae9a798a0
Better handling of date, datetime in R client (#13706)
* better handling of date, datetime in R client

* use string instead of as.Date
2022-10-17 00:41:37 +08:00
William Cheng
3bd2a611bf update samples 2022-10-16 17:55:03 +08:00
William Cheng
c81c131c46 Merge remote-tracking branch 'origin/master' into 6.3.x 2022-10-16 17:47:47 +08:00
William Cheng
e02ebd822a
Merge pull request #13513 from tjquinno/helidon-generation
Add server and client generators for Helidon
2022-10-16 16:30:52 +08:00
William Cheng
866d67a78f
Move some travis tests to github workflow, remove redundant c# test (#13704)
* move some travis tests to github workflow, remove reduntant c# test

* setup ruby

* switch to setup-ruby

* bundle install

* remove bash

* remove bundle install

* remmvoe gemfile

* add more folders in tab detection

* comment out java folder in tab detection

* undo changes in tab detection
2022-10-16 16:20:49 +08:00
devhl-labs
f11cb7f17d
[csharp] Delete and build samples (#13641)
* delete and build samples

* how did this not get committed?

* how did this not get committed?

* how did this not get committed?

* fixed csharp netcore functions

* reverted two files

* restored manually created tests

* reverted some unintentional changes

* restored unintended changes
2022-10-16 10:18:48 +08:00
William Cheng
cafdf64ca5
Fix ClassCastException when uuid has default value (#13698)
* fix cast error for uuid default

* fix java uuid default value
2022-10-16 09:08:17 +08:00
William Cheng
838212eefb update crystal samples 2022-10-16 00:39:06 +08:00
William Cheng
8548a63d96
[Crystal] add require "big" for decimal (#13696)
* add require big, add tests

* add new files
2022-10-15 22:43:40 +08:00
William Cheng
4d03c9272b prepare 6.3.0 snapshot 2022-10-15 15:40:47 +08:00
William Cheng
daf475a96d
R - better code format (#13691)
* r - beter code format

* better readme

* update instruction
2022-10-15 10:47:27 +08:00
tim.quinn@oracle.com
715bbfab56 Push up-to-date generated samples
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-14 10:16:27 -05:00
Tim Quinn
048f78e0c6
Change generated MP server return type from Response to the document-indicated type (#72)
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-13 11:39:59 -05:00
Sorin Florea
1fda3ce290
Remove unused import (#13660) 2022-10-12 11:11:34 +08:00
Tim Quinn
9e5625c842 Push generated samples with updated version (#70)
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>

Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-11 13:32:09 -05:00
tim.quinn@oracle.com
51dc1c928a Missed updated/generated files
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-11 13:30:57 -05:00
tim.quinn@oracle.com
88ee081ad4 Add generated Helidon sample files
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
2022-10-11 13:30:57 -05:00
Segev Finer
53873ff6d8
[kotlin] Fix empty body with POST/etc in OkHttp client (#13666) 2022-10-11 12:18:24 +01:00
Bruno Coelho
1e66f2fbc9
[swift][client] fix xcode warning (#13647)
* [swift][client] fix xcode warning

* [swift][client] fix xcode warning
2022-10-11 11:08:15 +01:00
Bruno Coelho
1235ccd391
[kotlin][client] move info to readme (#13649)
* [kotlin][client] move info to readme

* [kotlin][client] update sample projects
2022-10-11 11:07:36 +01:00
Justin Black
ef8e55ca21
[python] client bug fixes + type hint improvements (#13665)
* Adds python client, template, and spec updates for query param content type json

* Samples regenerated

* Finishes adding test cases for query param json content type

* Uses newest templates

* Templates replaced, spec replaces, sample replaced

* Samples updated
2022-10-10 20:13:31 -07:00
Beppe Catanese
48928d8efe
[Go] Generate test files (#13560)
* Process api_test.mustache

* Create api_test.mustache

* Add test and helper method

* Commit all (re)generated files

* Commit all (re)generated files

* Fix indentation
2022-10-07 23:15:09 +08:00