11973 Commits

Author SHA1 Message Date
Reinhard-PTV
f0fd94441f
Support validation for arrays for JavaJaxRS and a test to validate the fix (#11709) 2022-02-26 10:58:06 +08:00
Tomas Bjerre
d20a32f1f7
fix: avoid generic NPE when refering to missing schema (#11718) 2022-02-26 10:57:29 +08:00
Shawn Kovalchick
258b6052f9
Suppress double double quotes when generating query parameters (#11627) 2022-02-26 01:15:16 +08:00
Adam Hynes
8b74053c7c
[kotlin-spring] fix #9902 use coroutine Flow for arrays in delegate when reactive=true (#11695)
* [kotlin-spring] fix #9902 use flow for arrays in delegate

* [kotlin-spring] fix #9902 only use flow for arrays in delegate for bodyParams
2022-02-26 00:58:36 +08:00
koudenpa
aa63ea09f8
Fix Perl client header params (#11713)
* Fixed perl client header construction

* update perl-petstore sample
2022-02-25 20:43:36 +08:00
William Cheng
2daa7391e0
update polly to newer version 7.2.3 (#11714) 2022-02-25 19:13:37 +08:00
Sergii Baitala
237706df64
[cpp-restsdk] Change build folder structure to match include folder structure in installed client (#11487)
* change source folder structure

* fix importMapping
2022-02-24 14:35:59 +08:00
Reinhard-PTV
c5213e3b5e
Support arrays within deepobjects (#11699) 2022-02-24 13:21:59 +08:00
Chris White
d153134dec
Fixed RFC3999DateFormat clone NPE (#11705) 2022-02-24 12:29:23 +08:00
Kuan-Yin Chen
ab63786610
[Python] remove default content-type in the request (#10782)
* remove default content-type in the request

* add remove default content-type test

* fix duplicate content type

* update sample

* add missing params

* update sample

* only assign content type if exist

* update sample

* update sample

* format code

* update sample
2022-02-24 12:08:49 +08:00
Jean-François Côté
7bda4734e6
Fix sonarqube warnings / code smells from the generated code. (#11702) 2022-02-24 11:07:19 +08:00
Bruno Coelho
266cd5de0d
[swift5][client] remove apiResponseQueue in the clients that don't have any impact (#11698) 2022-02-24 01:37:33 +08:00
sullis
6e7c39e64f
validate pom.xml files (#11672) 2022-02-23 16:38:25 +08:00
William Cheng
df39875502
fix buils warning in java native client (#11688) 2022-02-22 17:04:14 +08:00
Gustavo De Micheli
f59c07b24a
Add Model Docs to scala-akka generator as defined in its README (#11684)
Co-authored-by: Gustavo De Micheli <gustavo.de.micheli@lunatech.com>
2022-02-22 16:38:36 +08:00
Sorin Florea
7dcfe62dee
Properly encode exploded query params in url (#11682) 2022-02-22 16:33:36 +08:00
방진영
79970228e6
rollback curl_list_free keyword (#11677) 2022-02-22 16:27:34 +08:00
Karsten Thoms
735dae41a5
[#11323] Fixed wrong clearing of CodegenModel#hasEnum field (#11653)
A CodegenModel's hasEnum property is set in addVars:
  cm.hasEnums = true;
This state was cleared afterwards again.

As one of its results the import for @JsonValue was not added for the model class in the Spring code generator, where 'model.hasEnums' was evaluated to false where it should be true.
2022-02-21 23:19:08 +08:00
William Cheng
df05e6f4bc
Update parser to 2.0.29 (#11388)
* update parser to 2.0.29

* better handling of null in dereferencing

* update parser to 2.0.30

* update core to newer version

* add new files

* rollback to previous stable version

* remove files

* Fixes for python-experimental NullableShape component

Co-authored-by: Justin Black <justin.a.black@gmail.com>
2022-02-21 18:37:52 +08:00
sullis
636e87568d
update ArchUnit rules (#11671) 2022-02-20 19:26:04 -08:00
sullis
aec4a12cae
archunit 0.23.0 (#11670)
https://github.com/TNG/ArchUnit/releases/tag/v0.23.0
2022-02-20 19:02:00 -08:00
sullis
4361790332
[java] jaxrs swagger-core 1.6.5 (#11668) 2022-02-20 21:46:34 +08:00
sullis
c5745f8d72
[java] jersey 2.35 (#11661) 2022-02-20 11:12:55 +08:00
sullis
3c8f249c6c
[java] logback 1.2.10 (#11659)
Latest version of logback
https://logback.qos.ch/news.html
2022-02-19 18:52:39 +08:00
sullis
4a7f46cba5
[java] openapi-generator-maven-plugin: add jaxrs-jersey2 test (#11658) 2022-02-19 18:50:50 +08:00
William Cheng
3a119b9cff
Add tests for Aspnet 6, minor bug fixes (#11663)
* add tests for aspnet core 6

* bug fix, update samples
2022-02-19 18:46:38 +08:00
William Cheng
2918b8706e
better code format in c#, aspnet generators (#11662) 2022-02-19 14:40:12 +08:00
Felix Winterhalter
c161358aa8
[Csharp][aspnet] Aspnet 6.0 Support (#10619)
* Aspnetcore V6 Support

* docs: update-docs
2022-02-19 13:52:52 +08:00
William Cheng
d530e1baec
minor enhancement to code format in go client (#11657) 2022-02-19 13:11:28 +08:00
William Cheng
d030ac1b50
better code format in go generators (#11656) 2022-02-19 11:41:19 +08:00
Aaron Pittenger
0d4dba13f6
[Python] python regex validation generation (#11525)
* fix: python regex validation generation

* docs: updated comment to be more specific

* fix: check the right value used when generating the regex
2022-02-17 21:11:39 -08:00
Paul-Etienne François
d45cb6511f
[Java][Native] Fix an issue leading to an altered String parameter when consuming formatted strings like XML (#11640)
* Fix the generated request builder when using a string body parameter

* Update the samples according to the fix for #11638
2022-02-18 11:50:15 +08:00
moznion
d6a97b0c39
Remove dummy variable declaration for context.Context from generated go code (#11641)
Originally, this dummy declaration was needed because there was the
possibility of the generated code doesn't use `context.Context` and then
if it imported that package, go compiler complains that and makes an error.
ref: 3ed1aa8e79/modules/swagger-codegen/src/main/resources/go/api.mustache (L30)

However, now this dummy placement is no longer needed because the
generated code always uses `context.Context`.

Signed-off-by: moznion <moznion@mail.moznion.net>
2022-02-18 11:34:05 +08:00
sullis
9517a9525b
[java] enhance unit tests for JavaJerseyServerCodegen (#11643) 2022-02-17 19:24:19 -08:00
William Cheng
1f6b3eb604
Remove go-deprecated generator (#11645)
* remove go-deprecated generator

* update doc
2022-02-18 11:20:09 +08:00
Rodrigo Cebrián González
03cca89b80
✏️ Fixed typo error on java generator config-help command (#11644)
Fix the typo error "proeprties" to properties inside the gradleProperties config for java generator
2022-02-18 11:09:00 +08:00
Ran Halprin
1b8dae18b8
typescript-fetch: Support deprecated parameters, operations (#11523)
Co-authored-by: Ran Halprin <ran@myhippo.com>
2022-02-18 00:47:28 +08:00
Tomáš Čermák
f1ad3a89e6
[Protobuf-Schema] Add enum prefix (#11548)
* [Protobuf-Schema] Add enum prefix

* [Protobuf-Schema] Documentation updated

* [Protobuf-Schema] Samples updated
2022-02-18 00:32:34 +08:00
William Cheng
6d9e349721
Update kotlin vertx server dependencies (#11631)
* update kotlin vertx dep to newer versions

* update kotlin to newer version
2022-02-17 19:45:31 +08:00
William Cheng
b979eccf68
Add Github action file to test Java clients (#11633)
* add github action file to test java clients

* update tests
2022-02-17 15:49:34 +08:00
Justin Black
b165d2dda9
[python-experimental] fn + method signature improvements (#11529)
* Updates code

* Removes java files
2022-02-16 10:52:31 -08:00
Daniel Schreiber
035736f5c4
[java] No @NotNull annotation for readOnly (required) attributes - fixes #5026 (#10820) 2022-02-16 15:33:23 +08:00
William Cheng
c7367c2d34
[kotlin] add missing import, better code format for kotlin generators (#11619)
* add missing import, better code format for kotlin generators

* update kotlin workflow

* more kotlin tests

* better code format

* separate kotlin client, server teets

* comment out tests
2022-02-16 15:09:51 +08:00
Sergey Vladimirov
d0d0a0505e
Support email validation in kotlin-spring (#11617) 2022-02-16 13:34:11 +08:00
cachescrubber
5afec1fec7
Spring hide controller impl (#11611)
* hide implementation behind undocumented flag (_api_controller_impl_) to temporarily preserve code.

* Generate Samples
2022-02-16 11:06:41 +08:00
William Cheng
878f6e5709
[General] Better code format (#11612)
* better code format in java tests

* better code format in java client codegen

* better code format in java model tests

* better code format in abstract java codegen

* better code format in codegen parameter, property

* better code format in codegen response

* better code format in codegen model

* better code format in default generator

* better code format in default codegen

* update codegen model
2022-02-15 16:32:48 +08:00
Laurens-W
52e3265c34
[Java][RestTemplate] Use class level RestTemplate for uri encoding (#11606)
* Move static logic to initialization method when no RestTemplate is provided.
Otherwise, use the settings from the RestTemplate that was provided.

* Move code outside of withXml
Run required scripts

Co-authored-by: Westerlaken, H.L. (Laurens) <laurens.westerlaken@devolksbank.nl>
2022-02-15 16:31:51 +08:00
devhl-labs
d7b812ad42
[charp-netcore] Constructor Improvements (#11502)
* 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

* created library modelGeneric, removed debugging lines

* build samples

* build all samples

* avoid breaking changes

* publish and build samples

* added line break
2022-02-15 10:44:23 +08:00
William Cheng
a4fcd1c924
avoid Double Brace Initialization (DBI) (#11609) 2022-02-15 10:42:55 +08:00
Lennart Schwahn
ba04720898
fix #6134 by considering the type List<File> (#11361)
The method buildRequestBodyMultipart in ApiClient.java now recognizes if
an input parameter is an instance of List.
2022-02-15 10:35:46 +08:00