7804 Commits

Author SHA1 Message Date
Peter Lamby
5c4529259f
[BUG][typescript-fetch] wrong response for simple types (#14659)
See #9364
See #2870
2023-03-15 09:47:34 +01:00
devhl-labs
388147f822
suffixed variables with LocalVar to avoid conflicts (#14958) 2023-03-15 10:58:09 +08:00
martin-mfg
f1d05fc7f8
Allow Java apache-httpclient users to supply additional HTTP headers per call, updated (#14929)
* Allow Java apache-httpclient users to supply additional HTTP headers per API call

* fix 'unexpected return value' problem

* make "fullJavaUtil" work

* Revert 'make "fullJavaUtil" work'

This reverts commit 60c8846.

---------

Co-authored-by: Jigar Joshi <jigarjm@gmail.com>
2023-03-14 20:20:31 +02:00
igokoro
b172f622b9
Do not use default locale in kotlin generated code (#14668)
Using default locale for non-user visible text transformations is not safe
and can result in bugs, in particular with Turkish locale.

More details in
https://mattryall.net/blog/the-infamous-turkish-locale-bug

Closes #14667
2023-03-14 16:47:15 +00:00
Christian Mösl
85ff3de157
[java][webclient/resttemplate] fix dependencies for gradle with jakarta (#14925) 2023-03-14 17:57:08 +02:00
Oleh Kurpiak
bda2501455
[Java][Spring] option whether to generate required args constructor (#14941) (fix #14934) 2023-03-14 10:39:58 +02:00
devhl-labs
dc1386c134
better deserialization (#14945) 2023-03-14 11:40:40 +08:00
Mathias Dierickx
e52a9fd961
Add missing ConfigureAwaits for csharp-netcore generator (#13664) 2023-03-14 00:29:03 +08:00
Jonas Reichert
f45523dd1a
[swift5] fix modelNamePrefix and -suffix for reserved types (#14768)
* only add suffix or prefix if type is not a primitive or from dependency

* add tests

* add sample

* add second API with prefix and suffix

* add primitives

* add missing pom

* add missing shell script

* fix cycle dependency

* generate samples
2023-03-13 09:42:24 +00:00
Robin Karlsson
564939a4a8
[java][jersey] Remove double brace initialization and some more jersey cleanup (#14783)
* Remove double brace initialization

* Use diamond operator

* Less clutter in generated api classes

* Optimize isJsonMime

* Revert change in escapeString

Skip toString() on string parameters.

* Fix edge-cases

A ServerVariable without enumValues and/or operationServers
with any ServerVariables would lead to invalid code.
2023-03-13 16:42:37 +08:00
William Cheng
9a53625fcc update erlang proper samples 2023-03-13 16:07:14 +08:00
William Cheng
6d71db3d6d update samples 2023-03-13 15:46:31 +08:00
devhl-labs
e9fed506b3
used the date format (#14936) 2023-03-13 15:25:29 +08:00
devhl-labs
8785acea7c
added samples for unsigned (#14938) 2023-03-13 15:24:45 +08:00
devhl-labs
3a940c93cc
[csharp-netcore][aspnetcore] Added examples (#14927)
* added examples

* added examples to aspnet
2023-03-12 15:07:54 +08:00
devhl-labs
2b7007b653
[csharp-netcore] Moved formats to separate file (#14894)
* add unsigned integer/long support to c# netcore client

* moved formats to separate file

* moved formats to cli options

* moved formats to cli options

* reverted unintended changes

* reverted unintended changes

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-03-12 15:05:35 +08:00
William Cheng
c4b404dc2e
Decommission csharp-dotnet2 client generator (#14911)
* decommission csharp-dotnet2 client generator

* update doc
2023-03-10 14:30:32 +08:00
Brahim Hadriche
f3960b2116
[v2] (RFC) Csharp netcore generator supports UnityWebRequest library (#14870)
* Base impl

* Improve Unity support

* update samples

* Sync bool property

* Update samples

* Set support file property

* Address comments

* Fix test asmdef

* Fixes for WebGL support

* Add note about Unity version

* Add Unity Sample

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-03-10 14:17:50 +08:00
William Cheng
77dd4990a4
update C# client dep, update samples (#14908) 2023-03-09 11:05:59 +08:00
Andre Vegas
d56a55a06b
Fixing missing openApiNullable config for java apache-httpclient generator (#14828)
* 14827 - fixing missing openApiNullable config for java apache-httpclient generator

* 14827 - run PR steps updating examples & docs

* 14827 - fixing test data
2023-03-09 00:05:47 +08:00
Jorge Rodríguez Martín
9705617f93
[Java][Resttemplate] Normalize the RestTemplate ApiClient (#14845)
* Normalize resttemplate

* Update samples
2023-03-08 23:57:05 +08:00
William Cheng
70faa6b15c
better support of allOf with 1 sub-schema (#14882) 2023-03-07 00:35:34 +08:00
William Cheng
d497c3d087
[python-nextgen] Better docstring/documentation (#14880)
* better docstring/documentation in python nextgen client

* update instruction in test files
2023-03-06 21:22:43 +08:00
Bruno Coelho
5dc0b70081
[swift5][client] remove deprecated APIs (#14635)
* [swift5][client] remove deprecated APIs

* [swift5][client] remove deprecated APIs
2023-03-05 11:35:51 +00:00
Bruno Coelho
4bb8372340
[swift5][client] improve headers order (#14636) 2023-03-05 11:33:05 +00:00
devhl-labs
2a9fb7b6e7
removed double encoding (#14883) 2023-03-05 10:09:57 +08:00
William Cheng
46fb49ecd0
[python-nextgen] Add pyproject.toml (#14861)
* add pyproject.toml in python-nextgen client generator

* minor fix
2023-03-04 14:14:43 +08:00
William Cheng
1beec7ef87 Merge remote-tracking branch 'origin' into 7.0.x 2023-03-03 21:52:50 +08:00
Terence Honles
057a56a827
fix(typescript-angular): only import services if providing them (#14864)
* fix(typescript-angular): only import services if providing them

* update samples
2023-03-02 15:17:31 +01:00
Kuzma
c8fab3f40a
[Typescript] Use for of instead of for in at ObjectSerializer (#14849)
* [Typescript] Use for of instead of for in

* fix for

* regenerate samples
2023-03-01 22:16:01 +01:00
jmejane
350fb82bed
[K6] Enhancement: Make operationId accessible inside requests (#14787)
* feat(k6): Make operationId accessible inside requests

* feat(k6): Update sample script

* feat(k6): re-add space deleted by formater
2023-03-01 22:46:12 +08:00
Antoine Lucas
e1ab25c915
Add constructor with required parameter for Spring (#14822) (fix #9789)
* Add constructor with required parameter for spring

Fix #9789

* [Java][Spring] constructor with required args

---------

Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
2023-03-01 15:09:47 +02:00
William Cheng
6d48d73421
python-nextgen switch union order (#14762) 2023-03-01 15:30:18 +08:00
William Cheng
e82ae6bacd
[python-nextgen] Add datetime, date format support (#14799)
* add datetime, date format support in python nextgen

* encode query parameters

* update default datetime format

* change default datetime format
2023-03-01 15:29:47 +08:00
William Cheng
854f8dbc6d
[CI] try to fix bitrise deprecation warning #14834 (#14836)
* [CI] try to fix bitrise deprecation warning

* [CI] try to fix bitrise deprecation warning

* skip tests

* simply run tests

---------

Co-authored-by: Bruno Coelho <4brunu@gmail.com>
2023-03-01 11:01:46 +08:00
William Cheng
a4b5b85067
Update jackson nullable version to newer version v0.2.6 (#14823)
* update jackson nullable to newer version

* update samples

* update samples

* update samples
2023-02-27 18:38:31 +08:00
Michel Wohlert
07f1d2d51c
Encode request parameters to enable whitespace characters (#14797) 2023-02-27 09:25:28 +08:00
Rémi Kalbe
099f138dd5
[RUST] Upgrade reqwest-middleware (#14819)
* [RUST] Upgrade reqwest-middleware

Bump reqwest-middleware from 0.1.6 to 0.2.0

* Bump sample
2023-02-27 09:05:37 +08:00
William Cheng
b5d4fa9d27
fix unique items in python nextgen client (#14816) 2023-02-26 10:21:26 +08:00
Emma
1f2d6b8848
[python-nextgen] support dict query params (#14727)
* [python-nextgen] convert dictionary query params to string

* [python-nextgen] regenerated samples

* [python-nextgen] added some test cases for parameters_to_url_query

* [python-nextgen] use json.dumps instead of str(v)

* [python-nextgen] update api_client tests
2023-02-25 22:25:52 +08:00
Dennis Melzer
92b96635bd
Fix bean validation for Collection and add unit test (#14736)
* Fix bean validation for Collection + uni test

* Fix

* Adapt examples

* Fix comments

* Merge master

* Remove Bean validation for Maps

* Remove @Valid from jakarta

* Fix example

* Fix comments

* Fix springboot-3 example
2023-02-25 22:06:31 +08:00
David Weinstein
3aa7ec6a39
Get API configuration from application environment for erlang-client (#14752)
* Get config from classname api

* Use the packageName

* Add samples
2023-02-25 22:05:14 +08:00
sbilz
f4e53db8cf
Java Jersey glassfish fix renewing OAuth-Accesstoken #14734 (#14735) 2023-02-25 22:01:33 +08:00
catostrophe
5c9999b7cf
Stop using org.springframework.util.Base64Utils in Java generators (#14813)
This utility class has been marked as deprecated for future removal since Spring 6.0.5. All Java generators, except WebClient and RestTemplate, are already using Base64 directly.
2023-02-25 21:56:18 +08:00
William Cheng
d400d7fb15
Better handling of x-nullable in codegen property (#14800)
* add failed tests

* add logic to handle x-nullable in property

* update samples

* update test
2023-02-24 15:24:34 +08:00
William Cheng
b527f3b816
Setup Github works for Erlang projects (#14788)
* add github work for erlang projects

* trigger build

* use setup-bean instead

* add rebar3 version

* update otp version

* fix otp version

* fix otp version

* use 22.2

* fix

* fix

* fix ubuntu version

* use 22.2

* comment out erlang server test
2023-02-22 15:03:21 +08:00
Cameron Koegel
18ef6ff96a
[Ruby] fix return_binary_data with attr_accessor (#14772)
* [Ruby] fix `return_binary_data` with `attr_accessor`

* regenerate samples
2023-02-22 00:51:21 +08:00
William Cheng
c50a775e0c
prepare 6.5.0 release (#14749) 2023-02-19 20:36:23 +08:00
William Cheng
93df0ff444
Prepare 6.4.0 release (#14748)
* prepare 6.4.0 release

* update samples
2023-02-19 18:53:20 +08:00
William Cheng
1bd3ce7ce2
[python-nextgen] Better oneOf, anyOf support (#14743)
* better oneof, anyof support

* improve anyof support

* fix deprecation warning

* fix anyof, add tests

* add nullable support, add test
2023-02-19 17:16:15 +08:00