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
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
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
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
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
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
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
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
Marc Miltenberger
7a7309edb8
Fix Java GSON client not accepting optional null arrays ( #16213 )
...
* Add check for null JSON array in GSON Java api client
* Update samples
2023-08-10 22:58:23 +08:00
André Roaldseth
75b04bb965
Ensure enum classes toString() returns kotlin.String ( #16247 )
...
When creating an enum where a valid value is `String`, the override of toString() will be the wrong type.
Simply using `*kotlin*.String` will allow using `String` as a value in an enum.
2023-08-09 15:09:21 +08:00
martin-mfg
3ed59cd593
[spring] reactive: fix Content-Type ( #16228 )
...
* don't set content-type to client's value
* revert manual sample change
* better fix
* generate samples
* cover 3rd case
* add new test endpoint
2023-08-08 15:52:18 +03:00
devhl-labs
de8f846666
[csharp] Improved regex support ( #16269 )
...
* improved regex support
* better parsing of options
* better handling of options
* spacing change
* typo
* rename the x-modifier- extension
* trivial change
* added to the sample
2023-08-08 11:40:20 +08:00
William Cheng
362b596fce
update kotlin client dependencies ( #16273 )
2023-08-08 10:06:08 +08:00
William Cheng
5b2ceac93d
fix anyOf in handling primitive types in java client ( #16264 )
2023-08-06 13:48:13 +08:00
William Cheng
f0b100a9ad
Add a test for BigDecimal parameter in java client ( #16263 )
...
* add a test for BigDecimal parameter in java client
* update tests
2023-08-06 12:14:21 +08:00
karzang
e299382a42
[Java][Client] Fix handling of 'number' types in oneOf ( #16202 )
2023-08-06 11:16:50 +08:00
William Cheng
d9e32a79a5
Support library option via additionalProperties ( #16242 )
...
* set library option obtain from additionalProperties
* test library
* update samples
* remove old files
2023-08-05 13:41:04 +08:00
William Cheng
6f05655101
Add mapping features to R client generator ( #16252 )
...
* add mapping features to r client generator
* update samples
2023-08-05 13:34:57 +08:00
William Cheng
d1f23ef663
add mapping features to crystal client generator ( #16253 )
2023-08-05 13:34:34 +08:00
William Cheng
f6fb83878b
[Default] update isAdditionalPropertiesTrue tag to cover more types ( #16227 )
...
* enhance additional properties support
* update samples
* update tests
* add more tests
* update samples
* fix samples
2023-08-05 13:32:43 +08:00
hai22yu23
cb56e50e0c
support 32bit in postdata ( #16238 )
2023-08-03 18:13:42 +08:00
William Cheng
81c398e530
add model name mappings support to the elixir client generator ( #16233 )
2023-08-02 17:26:52 +08:00
William Cheng
1d39902930
Add name mappings support to JS client ( #16234 )
...
* add name mappings support to JS client
* update doc
* udpate doc
* update doc
2023-08-02 17:26:23 +08:00
William Cheng
4602f18ca8
Add model name mapping feature to C# codegen ( #16209 )
...
* add model name mapping feature to C# codegen
* rename file
* update samples
* update doc
2023-08-02 10:06:11 +08:00
William Cheng
f3b3de2a29
add property, parameter name mapping to php generators ( #16206 )
2023-07-30 21:58:05 +08:00
William Cheng
243b5569ef
[Rust] add property, parameter name mapping ( #16205 )
...
* add name, parameter mapping to rust generators
* add, fix test
* undo cahnge
2023-07-30 21:57:35 +08:00
Marc Miltenberger
adac3b127f
Support for multipart/form-data; charset="utf-8" in Java GSON Generator ( #16211 )
...
* Support for multipart/form-data; charset="utf-8"
Previously, it was only checked for an exact equal string, which failed when there were additional options such as charset.
* Update samples
2023-07-29 00:22:19 +08:00
William Cheng
5d2e80977b
add name, parameter mapping to scala generators ( #16194 )
2023-07-28 09:51:50 +08:00
William Cheng
954d41b9aa
[C#] Add property, parameter naming support ( #16196 )
...
* add property, parameter naming support to c# generators
* update
* fix workflow
* update test
* update
2023-07-28 09:51:33 +08:00
William Cheng
184dfd2edd
[Kotlin] Add name, parameter mapping support ( #16193 )
...
* add name, parameter mapping support to abstract kotlin
* remove files
2023-07-28 09:42:08 +08:00
William Cheng
86cf4f1eb1
add mapping option to ada codegen ( #16190 )
2023-07-28 09:41:43 +08:00
William Cheng
d7311cd5cd
[Ruby] add property, parameter name mapping ( #16191 )
...
* add property, parameter name mapping support to ruby generators
* update samples
2023-07-27 09:48:53 +08:00
Adam Shannon
90eacb685c
fix(golang): make sure xml.Encoder is closed ( #16141 )
2023-07-26 15:48:46 +08:00
William Cheng
9aa15d9f09
[ruby] Add tests to operation servers in ruby client ( #16179 )
...
* add tests to operation servers in ruby client
* update samples
* revert change in spec, remove invalid? check in anyof model
* fix hsot table
* fix circleci config
* fix
* fix host table
* fix host table
* minor fix
* fix
* reorder
* update
* fix
2023-07-25 19:29:06 +08:00
Cameron Koegel
54d996732f
[Ruby] Fix Operation Servers ( #16144 )
...
* [Ruby] Fix Operation Servers
* user `server_index` instead of `index`
* use nil as default
* add tests
* revert tests
* add tests to custom file
* add test file to ruby-faraday
2023-07-25 12:18:23 +08:00