7608 Commits

Author SHA1 Message Date
Jean-François Côté
bdae6aaf81 Revert everything related to csharp client to reduce the size of the change 2023-05-31 12:59:51 -04:00
Jean-François Côté
9f7b0ba849 Update samples for csharp-netcore 2023-05-31 07:46:01 -04:00
devhl-labs
1e1e786a72
created partial method to format arguments (#15677) 2023-05-31 00:35:50 +08:00
devhl-labs
d7d57e2ea3
fixed null reference exception (#15680) 2023-05-31 00:10:39 +08:00
William Cheng
10c270fda6
fix date isinstance check (#15675) 2023-05-31 00:03:14 +08:00
devhl-labs
784c700d37
[csharp] Fix property names (#13681)
* build samples

* build samples

* commit java changes

* use var as prefix instead of _ for illegal names

* resolved conflict
2023-05-28 13:50:02 +08:00
devhl-labs
29223e0b81
[csharp-netore][generichost] Renamed ToModel to AsModel (#15662)
* renamed ToModel to AsModel

* build samples again
2023-05-28 11:54:21 +08:00
devhl-labs
9e8805d712
remove-more-null-warnings (#15664) 2023-05-28 11:52:44 +08:00
devhl-labs
0350d0e313
fixed example values (#15666) 2023-05-28 11:51:14 +08:00
devhl-labs
7fc23dd406
fixes a warning (#15661) 2023-05-28 11:20:45 +08:00
devhl-labs
4d52bf656e
[csharp-netcore][generichost] Reduce null warnings (#15656)
* reduced null warnings

* removed null warnings
2023-05-27 12:00:47 +08:00
samypr100
fe6e4e459f
[java] support required nullable properties on java okhttp-gson generator (#15462)
* Support required nullable properties on java okhttp-gson generator

* regen client after merge

* covering cases
* nullable - true ; required - true
* nullable - false ; required - true
* nullable - true ; required - false
* nullable - false ; required - false
2023-05-26 16:02:48 +03:00
Stefan Koppier
b3b672fdfc
[Kotlin-client][jvm-spring-webclient] Added support for spring boot 3 (#15646)
* Bumped kotlin spring-jvm-webclient spring boot version from 2.7.11 to 3.1.0

* Do not redefine HttpHeaders and MediaType for simpler code

* Added a simpler constructor to the api and simplified encodeURIComponent

* Added support for Spring Boot 3 in kotlin-client jvm-spring-webclient generator

* Fixed small syntactical regression in Kotlin client build.gradle
2023-05-26 17:07:36 +08:00
William Cheng
910e463d50 update C# samples 2023-05-26 08:32:10 +08:00
devhl-labs
db795a2c1a
[csharp-netcore] Removed deprecated package (#15595)
* removed deprecated package

* include the library for older than .net6
2023-05-25 23:37:12 +08:00
William Cheng
1145197fad
Add workflow to tests C# projects with .net 6 (#15629)
* add workflow to tests C# projects with dotnet 6

* trigger build

* fix cmd
2023-05-25 21:06:51 +08:00
devhl-labs
63c26fc794
upgarded test project framework (#15634) 2023-05-25 11:00:38 +08:00
Oscar Rodríguez
2b9677a29e
Adds operation null check avoid null exception (#15599)
* Adds operation null check in the method GetOperationServerUrl to avoid null exception

* Adds operation null check to avoid null exception to the csharp net core mustache

* update C# samples

---------

Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-05-24 17:33:58 +08:00
William Cheng
3990b73ff3
remove scala-httpclient client generator (deprecated) (#15627) 2023-05-24 16:39:35 +08:00
William Cheng
0e8d997bf6
[rust-client]: fix for collectionFormat=multi (#15626)
* [rust-client]: fix for collection format multi

* update rust samples

---------

Co-authored-by: Gorka Kobeaga <gorka@kobeaga.eus>
2023-05-24 15:45:00 +08:00
George
5b5cb1f7e0
[groovy] support enum generation in groovy client (#15619)
* support generation of enums for groovy

* add custom json generator for groovy

* add nestet enums in groovy templates

* add indent for nested Groovy enums & fix compilation errors in Groovy ApiUtils

* save auto generated samples&docs for groovy
2023-05-24 15:12:59 +08:00
Stefan Koppier
9358ab9d1d
[kotlin] New 'jvm-spring-webclient' library (#15568)
* Added library 'jvm-spring-webclient' to Kotlin client generator

* Reran all generators and generated docs

* Changed target of kotlin-jvm-spring-webclient sample from 2_0 to 3_0

* Added build of kotlin-jvm-spring-webclient to github workflow
2023-05-23 11:34:52 +08:00
devhl-labs
5299935c20
[csharp-netcore] Removed .netcore 3.1 (#15605)
* removed .netcore 3.1

* dont use .net standard for test package
2023-05-23 10:39:06 +08:00
Tiffany Marrel
cbcf3d36f6
[Java] [Kotlin] (#14876) fix use of isBasic conditions - do not use HttpBearerAuth (or HttpBasicAuth) for other http auth methods (such as http signature auth or custom schemes) (#15220)
* remove http signature from test yaml when not supported

* do not use HttpBearerAuth for signature auth or other unsupported http auth method

ignore unsupported http auth method unless generated code would not compile (in which case, an exception is thrown)

* [Java] fix use of isBasic condition

* [kotlin] fix use of isBasic condition
2023-05-22 16:08:08 +08:00
martin-mfg
ad5cc827f0
remove fullJavaUtil (#15033) 2023-05-22 14:40:35 +08:00
devhl-labs
2af661d5b0
used default cancellation token (#15594) 2023-05-22 12:53:18 +08:00
Tiffany Marrel
3e10c5dbcf
[bash] fix use of isBasic condition (#15521) 2023-05-20 20:11:26 +08:00
Tiffany Marrel
e83640c836
[perl] fix use of isBasic condition (#15524) 2023-05-20 20:09:39 +08:00
Tiffany Marrel
7eeb7f6ed2
[PHP] fix use of isBasic condition (#15520) 2023-05-20 20:09:18 +08:00
Tiffany Marrel
b7a9373233
[powershell] fix use of isBasic condition (#15525) 2023-05-20 20:08:37 +08:00
devhl-labs
4a5437968f
added OrDefault method (#15551) 2023-05-18 11:22:44 +08:00
rledisez
44ad6d5eac [go-server] Support min/max/defaults for values (#15185)
* [go-server] Support min/max/defaults for values

Enforce, for the go-server, to check the minimum and maximum values
specified in the openapi description. Also apply the default if the
parameter is not passed.

Fix #14013

* Fix merge conflict

Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>

* Improve UnmarshalJSON implementation

Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>

* Improve default value handling for string

Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>

* Fix suggested changes

* rework option pattern

* add imports based on types/min max values

---------

Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
2023-05-17 01:58:28 +08:00
William Cheng
1210229e36 Merge branch 'version-bump' of https://github.com/devhl-labs/openapi-generator 2023-05-16 17:20:52 +08:00
William Cheng
0d1f562d13 update c++ samples 2023-05-16 17:20:46 +08:00
Tiffany Marrel
016507cf5c
[javascript] fix use of isBasicBasic and isBasicBearer conditions (#15522) 2023-05-16 15:25:18 +08:00
Andrii Serkes
fbf42de200
Fix JsonNullable issue for Helidon generators (#15423)
* fix JsonNullable issue

Signed-off-by: aserkes <andrii.serkes@oracle.com>

* update samples

Signed-off-by: aserkes <andrii.serkes@oracle.com>

* update samples, refactoring

Signed-off-by: aserkes <andrii.serkes@oracle.com>

* update samples, refactoring

Signed-off-by: aserkes <andrii.serkes@oracle.com>

* update samples

Signed-off-by: aserkes <andrii.serkes@oracle.com>

---------

Signed-off-by: aserkes <andrii.serkes@oracle.com>
2023-05-16 14:34:37 +08:00
William Cheng
1c56b07634 update c# samples 2023-05-16 14:17:42 +08:00
devhl-labs
25620e7df8
removed extra line break (#15507) 2023-05-16 14:05:53 +08:00
devhl-labs
cc1226c0db
[csharp-netcore] Zero based inner enum sample (#15506)
* added to the sample

* build samples again
2023-05-16 14:05:17 +08:00
William Cheng
c5a1dbecfb
[openapi-normalizer] enable some rules by default (#15501)
* enable certain normalizer rule by default

* minor fix

* better error handling

* update doc
2023-05-16 14:04:52 +08:00
William Cheng
01ed5975e1
rename python-nextgen to python (#15504) 2023-05-16 13:54:07 +08:00
Oleh Kurpiak
54cb33c6a1
[Spring] remove deprecated annotation from no-args constructor (#15512) 2023-05-15 14:13:18 +03:00
William Cheng
f0519eb934
Fix Go client tests (#15505)
* fix go tests

* more fixes

* fix mock
2023-05-14 21:17:48 +08:00
devhl-labs
fd20632ba1
[csharp] Changed enums to start from 0 (#15503)
* zero based enums

* changed locale
2023-05-14 16:35:54 +08:00
Ween Jiann
78bffff8f3
[Go] Update API naming to follow Golang standard pkg (1 line change) (#15331)
* Add apiNameSuffix to AbstractGoCodegen

* Regenerate files

* Update tests

* Regenerate files

* Update test files

* Regenerate for CI test

* Regenerate for CI test

* Remove some docs

* Add files back
2023-05-13 09:40:26 +08:00
William Cheng
3371e883ab
Decommission python-legacy, python-prior client generators (#15475)
* decommission python-legacy, python-prior client generators

* update tests

* update doc
2023-05-12 13:46:39 +08:00
martin-mfg
e152799569
[JAVA] fix "text/plain" with charset specifications (#15399) 2023-05-11 16:47:42 +08:00
devhl-labs
977de5b324
moved deserialization to template (#15474) 2023-05-11 16:44:37 +08:00
Bodo Graumann
fc71f98bed
[typescript] Add missing types field to export declaration (#15403)
* Add types to exports in package.json

* Regenerate and build petstore samples
2023-05-11 09:59:43 +02:00
William Cheng
9ace780eac update samples 2023-05-10 15:14:29 +08:00