9299 Commits

Author SHA1 Message Date
HexagonSun
834b50233e
[typescript-angular] Prevent syntax error when using isDateTime=true (#11860)
Fixes a bug where the the `append` method's closing brace was not
generated when using code-generation option `isDateTime=true`.

Fixes #11267.
2022-03-15 14:02:37 +01:00
William Cheng
82b7dee480
update java jersey2 dependencies to newer versions (#11878) 2022-03-15 18:38:34 +08:00
William Cheng
2db3070b2d
Update java (okhttp-gson) client dependencies to newer versions (#11877)
* update java okhttp-gson client dependencies to newer versions

* update samples
2022-03-15 18:38:12 +08:00
William Cheng
7ea5d158f2
[Go] fix oneOf naming (#11863)
* update samples

* add lambda to handle oneof/anyof naming in go
2022-03-15 12:47:09 +08:00
Cameron Koegel
266de25cf3
[Python] Added Support for Validating and Converting Model Attributes (#11134)
* [Python] Added Support for Validating and Converting Model Attributes

* generate new samples

* remove attribute error

* update samples

* revert old changes

* changed spec_property_naming default to true

* regenerated samples

* regenerate samples
2022-03-15 00:35:39 +08:00
Jason Froehlich
a3c5bbb09a
Added field and class level annotations to the pojo.mustache (#11775)
* Added field and class level annotations

Added x-class-extra-annotation and x-field-extra-annotation for class and field level annotations per object/field

* added field and class level extra annotations to pojos

* Updated samples

* Removed duplicate line

* Updated samples
2022-03-13 21:55:25 +08:00
William Cheng
7ac90ed98f
[Go] add more tests to cover more cases (#11849)
* more tests for go client

* add new files

* update samples

* add more tests
2022-03-11 10:42:24 +08:00
NoTuxNoBux
795db0c19e
Fix incorrect FileParameter deserialization in csharp-netcore (#11850) 2022-03-11 10:37:45 +08:00
Noah Fontes
6f37409d2b
Fix nullable models embedded in allOf (#11804)
It is possible, though contrived, for a property to have both isAnyType
and isModel set. In this case, when the outer type is nullable, the Go
template expects a Nullable* type to be provided by the generator, but
it is skipped over instead. This change aligns the generator with the
template's expectations.
2022-03-10 16:31:44 +08:00
devhl-labs
22a1906480
[csharp-netcore] Upgrade to System.Text.Json (#11741)
* refactor nrt annotation

* enable nrt by default in .net6.0+

* use shorter nrt annotation

* build samples

* removed debugging lines

* fixed model and operatoin constructors

* reverted a commented line for comparison

* upgraded to System.Text.Json

* build samples

* build samples

* deleted samples to remove old files

* bug fixes

* bug fixes

* added tasks to track the bugs
2022-03-10 15:02:42 +08:00
Oleh Kurpiak
fb2c41c720
[Java] implicit headers regex (#11819) 2022-03-10 10:49:52 +08:00
William Cheng
cbdcf8cdad update samples 2022-03-10 10:13:29 +08:00
Gustavo De Micheli
26f65de5ec
Add auto-generated doc to scala-akka client (#11840)
Co-authored-by: Gustavo De Micheli <gustavo.de.micheli@lunatech.com>
2022-03-10 10:04:51 +08:00
Cameron Koegel
fd1ede6a73
[Python] Added Ability to Initialize Models by Passing in Dictionaries (#11125)
* [Python] Added Ability to Initialize Models by Passing in Dictionaries

* formatting change

* generate new python samples
2022-03-09 09:41:15 -08:00
wirthual
7ed7930bab
fixed wrong intendation error (#11834) 2022-03-09 11:21:54 +08:00
Cameron Koegel
94b1440074
[Python] Add Support for Content-Disposition Header without filename (#11055)
* [Python] Add Support for CD header w/o filename

* updated documentation per PR instructions

* fixed formatting and updated samples and docs

* revert docs changes

* regenerate python samples

* updated sample python test
2022-03-09 01:10:49 +08:00
Cameron Koegel
b1c6513015
[Ruby] Added Support for Building Models from Hashes with Strings as Keys (#11243)
* [Ruby] Added Support for Building Models from Hashes with Strings as
Keys

* generate samples
2022-03-09 00:59:53 +08:00
Katsuyuki Omuro
16fd760b16
[Ruby] Add x-group-parameters support to Ruby client (#11825)
* add group parameter support to Ruby templates

* update generated sample files
2022-03-09 00:52:46 +08:00
Bruno Coelho
00ef435018
[swift5][client] create comment to warn about android api version (#11830) 2022-03-09 00:03:02 +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
William Cheng
188f37f5a9 Merge branch 'master' of https://github.com/OpenAPITools/openapi-generator 2022-03-06 22:35:33 +08:00
William Cheng
03d4d75431 update C# samples 2022-03-06 22:35:04 +08:00
William Cheng
79872523d6
add tests, better code format (#11814) 2022-03-06 22:34:33 +08:00
William Cheng
f33ace6b03 update c samples 2022-03-06 21:48:00 +08:00
William Cheng
087c5a2fdb update c# samples 2022-03-06 21:29:49 +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
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
William Cheng
876f2fe9f7
[typescript-angular] update package.json (v11) to address security alerts (#11765)
* remove package-lock.json

* remove package-lock.json, update dev dependencies

* add package-lock.json
2022-03-02 17:21:13 +08:00
William Cheng
c87f33dc46 remove typescript angular v6, v7 samples 2022-03-02 16:25:02 +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
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
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
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
683984896e
update maven-javadoc-plugin to newer version (#11737) 2022-02-27 16:57:16 +08:00
William Cheng
319ccbd138 update samples 2022-02-27 15:52:05 +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
William Cheng
c3c82513fe update samples for cpp-qt client 2022-02-26 15:26: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
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
William Cheng
1cd4f3b46f update ruby samples 2022-02-26 14:20:09 +08:00