12694 Commits

Author SHA1 Message Date
William Cheng
743d2cde7f
Minor improvements to Gradle plugin (#14097)
* minor improvements to gradle plugin, test

* update gradle plugin doc

* fix out
2022-11-23 20:31:13 +08:00
Sorin Florea
d74cefba83
[JAVA][APACHE] Fix apache http client query parameters (#14020)
* Fix apache http client query parameters

* Update samples
2022-11-23 14:35:01 +08:00
Sorin Florea
906ec5dfa3
Cleanup outputDir before openApiGenerate (#13659)
* Cleanup outputdir before openApiGenerate

* Add cleanupOutput property to GenerateTask
2022-11-23 11:15:59 +08:00
Justin Black
871eda2731
[python] exposes deserialized bodies for non-2XX responses (#14095)
* Template update and sample update

* Samples regenerated

* Adds verification test

* Template update

* Samples regen, fixes exception instantiation
2022-11-22 09:35:26 -08:00
Mustansir Soni
a96777b6f4
[#13998][Bug][PHP] Move isNullable section to the top of the setter function in templates (#14005)
* Move isNullable section to the top

* Manage extra lines
2022-11-21 14:18:36 +08:00
Ian Cubbon
903ff0ba47
Trim any space when we format the error message sent back to the client. (#14066)
A trailing whitespace gets included if the error is not a RFC7807 model.
2022-11-20 22:35:21 +08:00
Martin Delille
2a7b3cd4b9
[cpp-qt-client] Fix warnings (#14056)
* Fix warnings

* Update samplE
2022-11-20 16:10:55 +08:00
Vittorio Parrella
4487042f0d
Issue 11401 - report correctly the parameters with the deep object specification (#13909)
* issue #11401 - Go client generator doesn't support deepObject in query

* samples generation

* fix generation

* fix generation

* generated samples

# Conflicts:
#	samples/client/petstore/go/go-petstore/model_200_response.go
#	samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go
#	samples/client/petstore/go/go-petstore/model_client.go

* Fixed unit tests

* revert to http connection for tests

* fix model_simple generation

* Fix parameter encoding issue

* simplified routine

* fix test url

* adapted for latest master, necessary generation

* samples generation

* sync with new master, regenerate samples

* added api client test
2022-11-20 15:09:33 +08:00
Oleh Kurpiak
95b566a3a9
[Java] fix additional annotations for oneOf interfaces (#13958) 2022-11-20 12:44:47 +08:00
devhl-labs
8e98bff934
mitigated a bug (#13786) 2022-11-20 12:28:29 +08:00
Justin Black
1748d03fb9
[python] Issue 13997 fix pass in model instances to new (#14067)
* Template update

* Adds test file

* Samples regenerated

* Adds missing #
2022-11-18 15:04:26 -08:00
devhl-labs
74441fde9f
[csharp-netcore] Removed net5, added net7 (#14003)
* removed net5, added net7

* bumped github action dotnet version
2022-11-18 00:50:29 +08:00
Oleh Kurpiak
40e04df096
[Java][Native] handle empty response body (#13993) 2022-11-17 23:27:59 +08:00
Alexei Bratuhin
e25f8c5d61
Add support for @GZIP in jaxrs-spec Quarkus templates (#13983)
* adjust templates for @GZIP

* add test

* remove debug output
2022-11-17 23:22:52 +08:00
Juan Ávila
5e50ff47b0
[JAVA][RETROFIT2] Include java.util.Set in fullJavaUtil imports (#14048)
* Include java.util.Set in fullJavaUtil imports

* Update java-retrofit2 samples
2022-11-17 21:55:45 +08:00
Jeremy Audet
92ecee8c27
Don't cast list to tuple in python-prior binding (#14014)
* Add test for python-prior type conversion error

In the spirit of test driven development, this test intentionally fails.
A following commit will fix the code to comply with the test.

See: https://github.com/OpenAPITools/openapi-generator/issues/14012

* Don't cast list to tuple in python-prior binding

Tweak the python-prior API bindings, so that they no longer cast lists
to tuples when making a POST request with a multipart/form-data
content-type. This fixes an interaction with
`urllib3.request_encode_body`, whose `fields` parameter expects tuples,
not lists.

cc @spacether

See: https://urllib3.readthedocs.io/en/stable/reference/urllib3.request.html

Fix: https://github.com/OpenAPITools/openapi-generator/issues/14012
2022-11-15 17:40:28 -08:00
Nick Malfroy-Camine
77226981b6
Make sure ts-ignore is ignoring right line (#14011)
* Make sure ts-ignore is ignoring right line

* generated samples
2022-11-15 18:07:19 +01:00
Larry O'Leary
42264aadd7
Fix invalid Python import for qualified package name (#14015)
* Add unittest for toModelImport

* Use `packageName` insetad of `packagePath()`
2022-11-14 14:28:36 -08:00
Jonas Reichert
e882421ff3
enhance response with bodyData (#14006) 2022-11-14 12:59:25 +00:00
William Cheng
2e44e78474
Update Ruby minimum version to 2.7 (#14002)
* update ruby minimum version to 2.7

* test ruby in cirleci
2022-11-13 12:14:21 +08:00
Justin Black
188c39dccd
Fixes bug where python generates client with low version specs (#13996) 2022-11-11 11:40:33 -08:00
Elric Milon
1670e952ff
[Rust] Add support for reqwest-middleware when using reqwest (#13946)
Co-authored-by: Elric Milon <whirm@gmx.com>
2022-11-11 18:25:01 +08:00
Antoine Reilles
f81eb7e6f0
[jaxrs-cxf-cdi] use jackson for enum serialization (#13766) 2022-11-11 18:18:19 +08:00
Justin Black
01f0763ec3
[python] fixes enum naming bug (#13985)
* Adds fix

* Adds needed java imports
2022-11-10 13:44:36 -08:00
Jonas Reichert
f1b8190b19
[swift5] less restrictive alamofire dependency resolution (#13977)
* modify Alamofire version in podspec

* modify Alamofire version in Package.swift

* also pin optimistically in Cartfile

* optimistically resolve all other dependencies to next major version
2022-11-10 17:27:24 +00:00
Jonas Reichert
7ad9f835ff
[swift5] support content types with charsets (#13981)
* enable possibility to add charset to content-type

* update samples
2022-11-10 14:28:36 +00:00
Onur Elibol
d8bed4228d
Using import type for types imports [typescript-axios] (#13964)
* type imports to use import type instead of import

* generated samples

Co-authored-by: onur-caplena <onur@caplena.com>
2022-11-10 10:49:39 +01:00
Mustansir Soni
4667b7e471
[#13954] Allows args and arg as schema properties in python client (#13955)
* Add args to reserved words

* arg and args to _arg and _args in templates

* Corrections

* Test added

* Corrections

* Use arg and args as defined properties

* Removed unnecessary assertion

* Suggested change
2022-11-09 11:10:29 -08:00
William Cheng
ca5d9b5e69
Add isEnumRef, isEnumOrRef to CodegenProperty (#13880)
* add isEnumRef to codegen property

* better format

* update R template to use isEnumOrRef

* update powershell template to use isEnumOrRef

* update samples
2022-11-08 11:16:16 +08:00
William Cheng
099a96b1ad
add option to skip reusing inline schemas (#13892) 2022-11-08 10:48:32 +08:00
Mark Delk
d80cd099ca
[BUG][RUBY] Fix ruby faraday HTTP 0 issue without libcurl (#13945)
* Fix ruby faraday HTTP 0 issue without libcurl

* commit generated files
2022-11-08 10:46:18 +08:00
William Cheng
6a7b8fcebe
[Go][client] better code format, regenerate go client tests (#13940)
* go client regenerate test

* replace 4-space with tabs, regenerate tests
2022-11-08 10:40:28 +08:00
Daniel Hoffmann
3eec4eb326
#13726 Introduce new remoteInputSpec parameter (#13727)
* #13726 Introduce new remoteInputSpec parameter

* #13726 Add documentation and new warning log
2022-11-07 23:32:58 +08:00
Beppe Catanese
7a17d3dc55
Correct import, add test (#13905) 2022-11-07 22:05:42 +08:00
Nathan Baulch
9f1fa0e440
Fix another batch of spelling typos (#13915)
* Fix typos

* Remove repeated words

* Minor grammar fixes
2022-11-07 21:30:24 +08:00
Julian Taylor
3dc8403e10
[Python] pass api_client configuration to model deserialize (#13922)
The if not passed the models create a new configuration object which
configures logging and determines cpu count every time.
This causes extreme performance issues when deserializing larger sets of
items.

See also
https://github.com/kubernetes-client/python/issues/1921
2022-11-07 09:05:14 +01:00
William Cheng
363906fda3
Better error check if discriminator value is null in r client (#13930)
* better error check if discriminator value is null in r client

* more readable error messages
2022-11-07 02:16:16 +08:00
Justin Black
b35ea31e82
[python] fixes multipart/form-data bug (#13926)
* api_client template updated

* Samples regenerated

* Fixes tests

* Adds missing test file

* Adds test fix
2022-11-05 09:10:24 -07:00
Gustavo Bazan
d5f896fe20
[GO] fix identation for model_simple.mustache (#13919)
* [GO] fix identation for model_simple.mustache

This corrects the identation for recnet changes in #13843

* running the scripts
2022-11-05 22:47:09 +08:00
Bruno Coelho
c35140cbc3
[swift5][client] fix URLSession warning of URLSessionProtocol conformance (#13906)
* [swift5][client] fix URLSession warning of URLSessionProtocol conformance

* [swift5][client] fix URLSession warning of URLSessionProtocol conformance

* [swift5][client] update bitrise config

* [swift5][client] enable async await sample project on CI

* [swift5][client] update bitrise config

* [swift5][client] update bitrise config

* [swift5][client] try to fix CI
2022-11-04 17:09:14 +00:00
cachescrubber
5221682086
[Java][Client] Support annotationLibrary=none to remove swagger annotations (#13869)
* Support annotationLibrary=none in JavaClientCodegen

* Add example using annotationLibrary=swagger1

* Support annotationLibrary=none in libraries

* Fix missing curly brace.

* fix if statement condition

* Support {{#swagger1AnnotationLibrary}} in java/rest-assured

* Adopt JavaModelTest

* Generate docs

* Generate samples

* clean up java feign files

* clean up feign samples

* fix resttemplate, native

* fix resttemplate withXml

* fix webclient

* fix java-jersey2, vertix

* fix googleapi client

* fix rest assured

* fix rest assured

* update apache-httpclient

* fix jersey2 special character

* fix resteasy

* fix jersey2

* update samples

* fix jersey2, okhttp streaming

* update okhttp-gson

* update samples

Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-11-04 17:07:46 +08:00
Hui Yu
c3abdb6c57
Check cJSON_IsNull when the data type is datetime (#13884) 2022-11-04 12:26:47 +08:00
William Cheng
c71ec554dc
update maven plugin, online generator deps (#13899) 2022-11-04 12:26:17 +08:00
Michael Ramstein
d2a9da5061
[Elixir] Fixes issue with maps/dictionary not present in payload (#13874)
* Adds fix to deserialize nullable maps

* Generate Samples
2022-11-03 17:46:24 +08:00
Mark Delk
4a7a2f5e6d
[RUBY] handle Faraday::ConnectionFailed api error (#13894)
* handle Faraday::ConnectionFailed api error

* commit generated files
2022-11-03 17:26:13 +08:00
William Cheng
bfcb3864a7
Update project dependencies - root, openapi-generator (#13881)
* update project dependencies - root, openapi-generator

* use 2.9.3 for jdk8
2022-11-03 16:54:57 +08:00
Thomas Hansen
0d1e31324b
[PHP] Accept 0 as value for query parameters (#13868) 2022-11-02 14:08:21 +08:00
Damiano Albani
89fc631125
Upgrade CommonMark dependency to v0.20.0 (#13872) 2022-11-02 13:39:53 +08:00
William Cheng
558ae9373d Merge remote-tracking branch 'origin/master' into 7.0.x 2022-11-01 21:01:06 +08:00
William Cheng
06354d5f7d update doc 2022-11-01 18:32:08 +08:00