20229 Commits

Author SHA1 Message Date
dependabot[bot]
da411b3f3f
Bump s4u/setup-maven-action from 1.8.0 to 1.9.0 (#16388)
Bumps [s4u/setup-maven-action](https://github.com/s4u/setup-maven-action) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/s4u/setup-maven-action/releases)
- [Commits](https://github.com/s4u/setup-maven-action/compare/v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: s4u/setup-maven-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-24 09:54:37 +08:00
Robert Schuh
6146129bdc
[typescript] add http info calls to access headers (#16260)
* [typescript] add http info calls to access headers

* [typescript] add http info calls to access headers

* [typescript] add http info calls to access headers

* [typescript] add http info calls to access headers

* [typescript] add http info calls to access headers

---------

Co-authored-by: Robert Schuh <robert.schuh@valtech.com>
2023-08-23 11:25:27 +02:00
Lezenford
3e95001939
[Kotlin-Spring] fix arrays response api after generation (#16296)
* issues/16295 fix arrays response api after generation

* fix samples

* fix samples

---------

Co-authored-by: Lezenford <alex.v.plekhanov@gmail.com>
2023-08-23 10:52:15 +08:00
Anis
00de163655
[python-flask] adopt python3.5+ syntax (#16375)
* adopt python3.5+ syntax

removing some residual python2 code, since it is not supported anymore, like:
- no need for `six` anymore
- no need for encoding utf8 in top file
- remove `object` inheritance in base model
- remove absolute import `__future__`

* generate samples

applying the new templates

* update python ignore pattern

ignore all the `.venv` folders
2023-08-23 10:42:40 +08:00
Kevin B
646ec8ba41
Fixing spelling of circiut => circuit (#16381) 2023-08-23 10:41:05 +08:00
Martin Kresse
bb507d5e6c
allow check for path parameters in matrix style (#16331)
* isMatrix added

* tests for isMatrix flag added
2023-08-22 20:36:16 +08:00
William Cheng
85d7b38084
Add mapping features to Abstract C++ Codegen (#16373)
* add mapping feature to cpp abstract codegen

* better code format
2023-08-22 17:50:41 +08:00
William Cheng
9c9c45a73e
add mapping features to c client generator (#16371) 2023-08-22 14:58:41 +08:00
lance-yuan-igt
32fe92fee9
[BUG] C# Aspnetcore Adding Name property for header parameters (#16360)
* Adding Name property for header param

* update samples

* update samples

* update doc

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-08-22 09:39:18 +08:00
clement-brodu
1a458d3e0b
fix: memory leak with restclient (#13961) (#16365) 2023-08-21 20:26:37 +08:00
William Cheng
656d2c2263
remove flash codegen (#16372) 2023-08-21 17:20:45 +08:00
William Cheng
d9423a4edb
[PHP] 6.0.x make php implementation depend on meta packages for http client (#16368)
* add psr-18 support

* update doc

* fix test
2023-08-21 10:45:51 +08:00
Filip Šmíd
2815e6a538
[BUG][kotlin-client][multiplatform] Write data to packet (#16367)
* fix: write data to packet

* docs: update samples
2023-08-21 10:31:49 +08:00
Chris
7f7717498f
[BUG] [java][jersey2/3] clientBuilder gets overwritten after call to customizeClientBuilder (#16355)
* [java][jersey2/3] call customizeClientBuilder after default config init

* regenerate the samples
2023-08-20 22:50:05 +08:00
devhl-labs
a600ef0ded
only one JsonConstructor (#16361) 2023-08-20 22:49:40 +08:00
William Cheng
e1b1b7d0c7
[csharp] JsonConverter.mustache - fix propertyName variable conflict (#16356)
* JsonConverter.mustache - Obfuscate "propertyName" variable to rare name "__jsonPropertyName__" to avoid conflict with generated variables

obfuscate "propertyName" variable, fixes issue if #allVars contains a variable named "propertyName" conflicting with the declared variable

* prefix local variable with localVar

* remove eol

* minor fix

* update

---------

Co-authored-by: SDP190 <sprizant1@gmail.com>
2023-08-19 23:33:05 +08:00
William Cheng
4140b387fb update go samples 2023-08-19 23:32:44 +08:00
Wouter Wijsman
a55453b5f7
Update go-gin-server templates to return a configurable library (#10479)
* Update go-gin-server templates to return a configurable library

Before this change, the user would be required to make changes in the
generated code. This makes it really hard to update the API and the
documentation at the same time. With this change, the generated code can
be imported as is and used. The user just needs to set the handler
functions for each endpoint.

* Use spaces instead of tabs for api files

* Use space instead of tab for ApiHandleFunctions in go-gin-server

* Update samples for go-gin-server
2023-08-19 18:42:58 +08:00
YusukeOba
141b3d4e0b
[kotlin-client][multiplatform] HttpClient can now be passed as an argument to ApiClient (#16343)
* [kotli-client][multiplatform] Added to inject HttpClient into the argument of ApiClient

* [kotlin-client][multiplatform] update generated samples
2023-08-19 17:05:11 +08:00
William Cheng
ff19825610
[java] Remove hardcoded arrays in template (#16340)
* remove hardcoded arrays in template

* better model import in java client

* update

* better code format

* minor refactoring

* update
2023-08-19 10:20:48 +08:00
William Cheng
b006b1b128
Improve documentations (#16346)
* improve doc

* update urls
2023-08-19 10:20:02 +08:00
Simon Wegendt
778a53a406
[Kotlin Client] Implement octet-stream/binary (#16341)
* Implement octet-stream/binary for Kotlin client code generator

* Fix OkHttp3 generator flavor
2023-08-17 10:40:22 +01:00
William Cheng
e69c58623f update samples 2023-08-17 12:03:43 +08:00
Perdjesk
a9a4aa4bf8
Array default value requires import of java.util.Arrays (#16246) 2023-08-17 11:49:49 +08:00
YusukeOba
c3c0188bf4
[kotlin-multiplatform] Fixed build error when setting formdata in array (#16329) 2023-08-15 21:07:10 +08:00
YusukeOba
2e17653ae8
[kotlin-client][multiplatform] Added support enum query parameter (#16327)
* [kotlin-multiplatform] add enum parameter support

* [kotlin-multiplatform] update generated samples
2023-08-15 17:10:26 +08:00
William Cheng
4f6a25f4b5
[JAVA] [WebClient] Handle list of String special case in WebClient generator (#16326)
* [Java][WebClient] support string list return type

* [Java][WebClient] add test

* [Java][WebClient] support string list return type

* [Java][WebClient] support string list return type

* fix webclient auto-generated test files

---------

Co-authored-by: Gavin.Wu <gavin.guohao.wu@kingland.com>
2023-08-15 13:53:04 +08:00
devhl-labs
76bb8a40d8
[csharp] Fixed model property data type (#16315)
* fixed model property data type

* build samples
2023-08-15 09:57:00 +08:00
Yonatan Karp-Rudin
35fec8da0e
Update the SumUp logo to the new logo (#16323)
This commit only updates the sumup logo to the latest logo

Co-authored-by: Yonatan Karp-Rudin <yonatan.karp@sumup.com>
2023-08-15 09:56:23 +08:00
Yonatan Karp-Rudin
c3c7a547b7
Add SumUp to the list of clients (#16322)
This commit adding SumUp into the list of companies that are using OpenAPI Generator.

Co-authored-by: Yonatan Karp-Rudin <yonatan.karp@sumup.com>
2023-08-14 19:57:48 +08:00
William Cheng
bcd934d15a
fix missing comma in kotlin api client (#16320) 2023-08-14 14:54:06 +08:00
William Cheng
f1bacd23e7
remove python flask py2 samples (#16319) 2023-08-14 13:34:25 +08:00
Yassine Ilmi
931197a1cd
Clean-up - Unnecessary trailing underscores in Python Flask, AIOHttp, BluePlanet (#16249)
* Remove trailing underscore in security_controller_.py and base_model_.py

* Regenerating sample files

* Clean-up files with trailing underscore in samples

* Update security extension to use the new security_controller

* Regenerate unmaintained samples
2023-08-14 13:26:24 +08:00
devhl-labs
47020f10b7
fixed class definition (#16318) 2023-08-14 13:23:44 +08:00
devhl-labs
ef9520f989
[csharp] Fixed operation nested return type (#16314)
* fixed operation nested return type

* more robust fix
2023-08-14 13:07:36 +08:00
Yonatan Karp-Rudin
83af019603
Fix Retrofit template with Jackson for Kotlin (#14239)
* Fix Retrofit template with Jackson (Fix #8147)

This commit amends the `ApiClient` template for Retrofit. It fixes a bug where the Retrofit client uses Jackson as the serialization library.

Until now, the `ApiClient` could not be compiled when using the Jackson library (default in SpringBoot applications), as the constructor of the class had the following parameter:

`private val serializerBuilder: Builder = Serializer.Builder,`

The change done in the commit, is to ensure that in case of Jackson, the right property of the `Serializer` class is assigned

* Add sample code for `kotlin-jvm-jackson`

This commit adds a sample code for the `kotlin-jvm-jackson` generated code to test the changes on CI

* Update kotlin code samples for CI

This commit only runs the command `bin/generate-samples.sh bin/configs/kotlin-*` to ensure that all code samples are up-to-date and CI can pass successfully.
2023-08-14 10:06:49 +08:00
Sanjay Marreddi
2ef888845d
Update CMake to fix cpprest linking for UNIX (#14199) 2023-08-12 17:32:49 +08:00
Vincent Giersch
604239abba
feat(swift5): allow to swift build in linux (#15060)
* feat(swift5): allow to swift build in linux

* chore(ci): add .github/workflows/samples-swift.yaml

* feat(swif5): bump Alamofire to 5.7.0

* chore(ci): run in macos all swift sample clients
2023-08-12 16:24:01 +08:00
Théophane Charbonnier
057bc8e626
[Java][Client] Microprofile Jackson serialization (#15940) 2023-08-12 12:15:59 +08:00
devhl-labs
1878c45be5
moved regex processing (#16309) 2023-08-12 11:29:19 +08:00
devhl-labs
f4dfd99566
removed nonexistant account (#16310) 2023-08-12 11:28:59 +08:00
Emanuele Saccomandi
8f9e6432f5
fixed zapier removeKeyPrefixes method (#16305) 2023-08-11 19:09:54 +08:00
William Cheng
2635b52b42
[go] fix issue that tempfile is not deleted (#16303)
* #15131 Issue: Tempfile is not deleted

* delete tempfile in go client

---------

Co-authored-by: Aniruddh <aniruddhjoshi94@gmail.com>
2023-08-11 14:40:56 +08:00
William Cheng
8885701648
minor enhancements to ts rxjs generator (#16302) 2023-08-11 11:10:33 +08:00
William Cheng
9d100d8f6b
Fix removing dollar sign for name sanitization (#16301)
* fix replacing dollar sign

* try to add tests
add list import
add missing imports
import OpenAPI
fix import ?
fix import?
rename methods
test test fix
test python test fix
fix??
fix??

---------

Co-authored-by: Joshix-1 <57299889+Joshix-1@users.noreply.github.com>
Co-authored-by: Joshix-1 <joshix.dev@mailbox.org>
2023-08-11 10:40:47 +08:00
rainmanhhh
a33c353a26
[typescript-rxjs] Update servers.mustache (#9449)
* Update servers.mustache

add hasOwnProperty checking; use const instead of var

* use 4 spaces instead of tabs
2023-08-11 10:30:40 +08:00
Harish Karumuthil
cc496ff2eb
Feature suppoert dart sample code in html2 generator (#7908)
* Add dart example

* Run `./bin/generate-samples.sh ./bin/configs/other/html2.yaml`
2023-08-11 10:18:41 +08:00
William Cheng
590430c774
Issue#15129 Feature Request Description (#16299)
Co-authored-by: Aniruddh <aniruddhjoshi94@gmail.com>
2023-08-11 09:42:47 +08:00
William Cheng
3ad3cf7dd9
add tests for array of number in java okhttp client (#16298) 2023-08-10 23:37:12 +08:00
n1t4chi
e8160d8d7d
Improve type reference in toEntity call in order to fix issue with LinkedHashMap being returned instead of maped object to POJO (#16293) 2023-08-10 23:22:08 +08:00