11973 Commits

Author SHA1 Message Date
Bruno Coelho
00ef435018
[swift5][client] create comment to warn about android api version (#11830) 2022-03-09 00:03:02 +08:00
Slawomir Kwasniak
0e4eb50af2
Fix typo in supportAndroidApiLevel25AndBelow help (#11821)
Obvious typo in the kotlin help description of the
`supportAndroidApiLevel25AndBelow` configuration parameter i.e.
`in oder` instead of `in order`.

Co-authored-by: Slawomir Kwasniak <slawomir.kwasniak@hensoldt-cyber.de>
2022-03-09 00:01:23 +08:00
Radek Postołowicz
c22997b9b8
Cleanup Jackson type info mess fixes (#9441) (#11691)
* Cleanup Jackson type info mess fixes (#9441)

* fixup! add import mapping for JsonIgnoreProperties
2022-03-07 09:36:05 +08:00
William Cheng
482032d14f
fix warnings due to incorrect docstring (#11815) 2022-03-07 09:23:09 +08:00
Oleh Kurpiak
382e2a22a8
Document all used vendor extensions in specific generator (#11797) 2022-03-06 23:21:55 +08:00
Abrhm7786
be8567f656
V4 Azure functions + some tweaks (#11345)
* Copying files from LeonB's fork

* Changes as per PR comments

* Resolved merge conflict

Co-authored-by: William Cheng <wing328hk@gmail.com>
2022-03-06 23:20:04 +08:00
Pang
7466bc2ed6
[Client:C] [C-libcurl] cmake support specify path (#11790) 2022-03-06 22:39:21 +08:00
William Cheng
79872523d6
add tests, better code format (#11814) 2022-03-06 22:34:33 +08:00
paritoshgote-msft
a1862ff5ce
Fix ClientCertificates plumbing for csharp config. (#11711)
Fixes the injection of ClientCertificates in Configuration.mustache for csharp netcore and netcore-functions.
2022-03-06 22:00:03 +08:00
방진영
284fbdfc4d
Fix list keyword (#11806) 2022-03-06 21:41:38 +08:00
Emanuele Saccomandi
9efda42d57
fixed csharp netcore conditional serialization (#11710) 2022-03-06 21:22:04 +08:00
Oleh Kurpiak
877812d0ba
[Java] use x-implements (#11784) 2022-03-06 21:00:26 +08:00
Noah Fontes
31f0c65378
Fix example generation when missing models (#11805)
For some buggy configurations, a warning is emitted indicating that for
a given request body the corresponding CodegenModel could not be found.
When this happens, some generators produce NPEs when writing out example
code. This change avoids the NPEs by providing a stub value instead.
2022-03-05 14:31:54 +08:00
Juha Syrjälä
23e44abda3
Fix jaxrs-spec to run with JDK 17 (#11798)
JDK17 is missing class `javax.annotation.Generated`.

Add javax.annotation:javax.annotation-api 1.3.2

Fixes https://github.com/OpenAPITools/openapi-generator/issues/11795
2022-03-05 14:21:05 +08:00
chatelao
79d9193374
Confluence Wiki - Escape special characters (#11786)
The Confluence Markup needs to escape some characters.
2022-03-04 23:15:22 +08:00
pichlau
5128e88f5f
Fix for issue #11779 (#11781)
Adding in the mustache template of the description value in @Operation annotation.
2022-03-04 23:08:40 +08:00
Oleh Kurpiak
2e0dc573b3
[Java][WebClient] allow sync requests (#11780) 2022-03-04 22:58:03 +08:00
Oleh Kurpiak
3656ec5260
[Java] remove samples & replace them with file asserts (#11773) 2022-03-03 19:58:03 +08:00
Laurens-W
5ad9f1889e
[DefaultCodegen] GetReferenceHeader for both calls of headerToCodegenParameter (#11756)
* GetReferenceHeader for both calls of headerToCodegenParameter

* Moved dereferencing of header outside of headerToCodegenParameter

Co-authored-by: Westerlaken, H.L. (Laurens) <laurens.westerlaken@devolksbank.nl>
2022-03-02 07:22:59 -08:00
William Cheng
8c023fae19 replace tabs with spaces in rust generator 2022-03-02 19:23:13 +08:00
sdoeringNew
53c2c66682
#8881: add ESM to typescript-fetch (#11720)
In case of "supportsES6" an additional tsconfig.esm.json is created. That will add an ECMAScript module to the npm build.
2022-03-02 08:37:54 +01:00
Karsten Thoms
6a7fc38fb9
[#4650] Fix StackOverflowError for recursive composite schemas (#11620)
The generator ran into a loop when a composite schema recursively added itself. This change provides a reproducing example and fixes the issue by extending DefaultCodegen#addProperties() by an additional circuit breaker parameter.

When additionalProperties() is called with a schema instance for which the properties have already been added, the method directly returns and does not run into the loop.
2022-03-02 01:35:47 +08:00
Jérôme Jutteau
21f649e087
[Rust] Support for withAWSV4Signature option (#11690)
* [rust] add support for withAWSV4Signature option in reqwest (#11193)

Signed-off-by: Jérôme Jutteau <jerome.jutteau@outscale.com>

* [rust] add petstore sample for withAWSV4Signature option for reqwest (#11193)

Signed-off-by: Jérôme Jutteau <jerome.jutteau@outscale.com>

* [rust] update all samples (#11193)

Signed-off-by: Jérôme Jutteau <jerome.jutteau@outscale.com>
2022-03-02 01:20:58 +08:00
Sergey Vladimirov
1b6ab63953
Add beanQualifiers option to kotlin-server (#11745) 2022-03-02 00:57:30 +08:00
Yohei Kitamura
f03b1e7261
[ruby] Allow boolean for discriminator value in oneOf handling (#11750) 2022-03-02 00:43:33 +08:00
LeComptoirDesPharmacies
dfc471dd90
LDS-2228 : remove undefined headers (#11757)
Remove undefined value from header

Envoyé depuis mon iPhone.
P.S. : Ce commit est certifié sans gluten

Co-authored-by: Géry THRASIBULE <g.thrasibule@lecomptoirdespharmacies.fr>
2022-03-01 17:37:56 +01:00
bgong-mdsol
417d69425a
[scala-sttp] fix enumeration operator constant name collision (#10596)
* fix enumeration operator onstant name collision

* test to verify OperatorName
2022-03-02 00:32:25 +08:00
Stephane Carrez
e37400554c
[Ada] New options to choose the Ada support library in client and server (#11749)
* [Ada] New options to choose the Ada support library in client and server generated code

* new option httpSupport to choose between Curl or AWS (Ada Web Server) support
* new option openApiName to choose the package name of the OpenAPI support library
* update the templates to customize the support library
* update generated GNAT config.gpr file
* update the client petstore Ada samples

* Fix call to toLowerCase() to give a locale

* Rebuild the Ada generator documentation
2022-03-02 00:30:29 +08:00
Antoine Reilles
a5952bfb10
[jaxrs-cxf-cdi] mark deprecated api methods (#11755)
In the generated java code, it is usefull to have the generated java api
use the @Deprecated annotation. This enable to leverage this annotation
at runtime to trigger specific logging for instance.

In the generated interface, use the @Deprecated annotation.
Also, in the jax-rs implementation that links the jax-rs api with the
cdi bean implementing the interface, use the
@SuppressWarnings("deprecation") annotation. This way the deprecation
warning is not shown in generated code.

One can use the interface as before: the java compiler can then tell
which implementations do implement a deprecated api, using a warning.
If the implementation itself also sets the @Deprecated annotation, then
there is no warning, unless the implementation is called at another
place in the code.
2022-03-02 00:17:11 +08:00
Mico Piira
4daead1aea
[Java] Fix reactor-netty dependency (#11747)
The spring-boot-starter-webflux uses
io.projectreactor.netty:reactor-netty-http
dependency so the io.projectreactor.ipc:reactor-netty
is actually not used at all
2022-03-01 17:39:58 +08:00
William Cheng
bdfca5b95f
fix typo in cpp qt client (#11752) 2022-03-01 13:52:41 +08:00
William Cheng
9d86d1db5e
fix typo in java feign client (#11751) 2022-03-01 11:22:19 +08:00
William Cheng
d2b80984ed fix compilation errors in the C# client generator 2022-02-28 09:41:47 +08:00
devhl-labs
76d224fe9b
removed eol frameworks (#11532) 2022-02-28 09:35:00 +08:00
Oleh Kurpiak
5b9efb6b5b
[Java] Java class assert (#11738)
* [Java] java file assert

* [Java] java file assert
2022-02-28 07:59:41 +08:00
William Cheng
683984896e
update maven-javadoc-plugin to newer version (#11737) 2022-02-27 16:57:16 +08:00
William Cheng
5764469051
[Java] Add useOneOfDiscriminatorLookup option (#11736)
* add useOneOfDiscriminatorLookup option to java client generator

* remove null
2022-02-27 16:50:29 +08:00
William Cheng
7d225aaea7 replace tabs with 4-spaces 2022-02-27 16:38:46 +08:00
ravinallappan
a1da4c9c5e
Enhance scalatra server codegen to include openapi info and package dir (#11385)
* enhance scalatra server codegen to include openapi info and package dir

* enhance scalatra server codegen to include openapi info and package dir

Co-authored-by: Ravi Nallappan <ravi_nallappan@persistent.com>
2022-02-27 16:03:01 +08:00
William Cheng
b0877a112d
fix oneOf discriminator lookup in java okhttp-gson client (#11735) 2022-02-27 15:42:54 +08:00
Reda
33b89148e5
[JavaSpring] Multipart causing HttpMediaTypeNotSupportedException when parameter is different than File or String (#11449)
* Generate @RequestParam when parameter is not a File

* Fix tests to use @RequestParam

* Enhance testMultipartBoot test case

* Update the Petstore sample

* Add MultipartMixedStatus files

* Use @RequestPart for spring-cloud when param is File

* Generate samples

* Delete spring-cloud formParams.mustache file

* Regenerate samples
2022-02-27 15:07:35 +08:00
sullis
f1d0724f2a
[java] junit 4.13.2 (#11733) 2022-02-27 13:18:19 +08:00
William Cheng
33ec0540b2
fix typo in the comments (#11729) 2022-02-26 15:45:30 +08:00
Itay Grudev
03f3fd09cd
Bug Fix: Cast from QByteArray to std::runtime_error (#11594)
```
error: no matching conversion for functional-style cast from 'QByteArray' to 'std::runtime_error'
```
2022-02-26 15:20:10 +08:00
Dominik Schmidt
e35a1270a3
Simplify forward declaration detection (#11490)
This makes sure all model classes are added to the forward declarations
which makes it possible to create templates without any model includes
which helps to resolve circular inclusion issues.
2022-02-26 14:56:41 +08:00
William Cheng
4d6b733d91
fix typo with camelUseDefaultValidationtErrorProcessor (#11728) 2022-02-26 14:51:02 +08:00
William Cheng
5c673d89c4
[typescript-angular] only support Angular v9+ (#11726)
* only angular 9+ is supported in typescript-angular

* clean up typescript-angular samples

* clean up samples

* fix test, update doc
2022-02-26 07:49:21 +01:00
William Cheng
0e14afc952
fix maven-wrapper.properties filename typo (#11727) 2022-02-26 14:36:33 +08:00
Zane Wolfgang Pickett
51ecfcd743
Expose proxy settings for Ruby Faraday (#11692) 2022-02-26 14:16:59 +08:00
William Cheng
9a33f99937 fix typos 2022-02-26 14:01:17 +08:00