12323 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é
7dfd844f13 Fix based on code review 2023-05-31 12:39:49 -04:00
Jean-François Côté
d157245efa Fix datetime null warning when compiling.
Removing the x-is-value-type which was a buggy and old version of the new x-csharp-value-type that work for every type.
2023-05-31 07:45:49 -04:00
Ross Bender
1561c33966
[JAVA] Generate client files with multiple enum oneOf types (#12687)
* handle multiple enum types for oneof

* add updates from generate-samples.sh

* add test coverage for oneof enum generation

* update doc and var names for clarity
2023-05-31 17:28:47 +08:00
Oleh Kurpiak
ff414dd6da
[Spring] Defaulting for Spring HTTP Interface library (#15689) (fix #15631) 2023-05-31 11:20:58 +03:00
devhl-labs
0bcf9d8bde
patch all property collections (#15678) 2023-05-31 00:36:35 +08: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
gonzalad
8a0f374a45
spring: fix spring pageable used without any config (#15113) (fix #13052)
* spring: fix spring pageable used without any config

Spring Pageable is imported whenever we have an API with
a Pageable Json schema, even if x-spring-paginated is not
set.

This commit imports Spring Pageable only if
x-spring-paginated is set to true.

* spring: add unit test for pageable fix

* spring: fix spring pageable feedback from review

remove unrelated example

---------

Co-authored-by: gonzalad <gonzalad@users.noreply.github.com>
2023-05-30 08:42:33 +03:00
William Cheng
8bad27e0ab
update python fastapi server dependencies (#15650) 2023-05-29 17:16:15 +08:00
William Cheng
7006b388de
Update go-gin dockerfile to newer version: 1.19 (#15597)
* update go-gin dockerfile to newer version: 1.19

* add go.sum

* fix

* update go mod
2023-05-29 16:55:14 +08:00
Stephan Strate
8e2fa826e5
[kotlin-server] cleanup KotlinServerCodegen configuration (#15653) 2023-05-29 15:58:08 +08:00
William Cheng
431cc2ec8e
Fix bugs (string comparison) in csharp generators (#15663)
* fix bugs in csharp generators

* undo change
2023-05-29 15:17:54 +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
William Cheng
e4bf068a88
Update swagger parser to 2.1.14 (#15644)
* update swagger parser to 2.1.14

* minor fix, update tests
2023-05-27 22:55:56 +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
4c7963cf54
remove deprecated options in kotlin client generator (#15651) 2023-05-26 14:51:55 +08:00
William Cheng
bbb6f4e6a0
[go-server] Update Dockerfile go version to 1.19 (#15596)
* update dockerfile go version to 1.19

* Update modules/openapi-generator/src/main/resources/go-server/Dockerfile.mustache

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

* Update modules/openapi-generator/src/main/resources/go-server/Dockerfile.mustache

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

* update samples

---------

Co-authored-by: Ween Jiann <16207788+lwj5@users.noreply.github.com>
2023-05-26 10:51:07 +08:00
Beppe Catanese
1f4cbb8f00
Add multiple parameter examples to CodegenParameter (#15647)
* Add examples to CodegenParameter

* Set CodegenParameter examples

* Add examples to CodegenParameter

* Set CodegenParameter examples

* Regeneration samples
2023-05-26 09:20:22 +08:00
Nikita Vakula
3db7169959
[python-fastapi] Added a base class for the actual implementation (#14470)
It is very difficult to "merge" the changes, made by code generation,
and the changes, made by developers. It would be very useful to
separate the generated code and the code written by developers. In
addition this would remove the necessity to track the generated code.
Pyhton (since 3.6) has a hook, __init_subclasses__, that could be used
to solve exactly this problem.
The classes from *_base.py should be implemented in an ns package that is specified
by the additional parameter ("-p fastapiImplementationPackage=example_name").

Signed-off-by: Nikita Vakula <programmistov.programmist@gmail.com>
2023-05-26 08:58:39 +08:00
Tiffany Marrel
ce587c7b57
[C] fix use of isBasic condition (#15534) 2023-05-25 23:39:43 +08:00
Tiffany Marrel
8aa8a60754
[typescript] fix use of isBasic condition (#15531) 2023-05-25 23:38:59 +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
gonzalad
d52e3fbfda
spring: fix multiline tag description (#15112) (fix #12474)
* spring: fix multiline tag description

@Tag description should merge multiple lines into single line
and trim the newline char at the end

The fix was done in a similar way to what is done for operation description.

* spring: multiline tag description add unit test

---------

Co-authored-by: gonzalad <gonzalad@users.noreply.github.com>
Co-authored-by: Oleh Kurpiak <oleh.kurpiak@gmail.com>
2023-05-25 11:01:12 +03:00
Oleh Kurpiak
765628fb77
Fix extensions handling for allOf with single schema (#15632) 2023-05-25 10:59:00 +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
Tiffany Marrel
80c85eff1b
[Haskell] fix use of isBasic condition (#15612) 2023-05-24 16:58:46 +08:00
William Cheng
3990b73ff3
remove scala-httpclient client generator (deprecated) (#15627) 2023-05-24 16:39:35 +08:00
aramflo
2042fb222a
CASS-399: Adds {{>partial_header}} to missing mustache files in aspnetcore. (#15616) 2023-05-24 16:37:46 +08:00
William Cheng
15604b31d6
fix go server string compare (#15589) 2023-05-24 15:47:42 +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
Stephan Strate
9890f076a9
[kotlin-server] add support for jakarta ee namespace (#15593) 2023-05-24 08:44:39 +01:00
William Cheng
48ef91acc4
[python] Add test for nullable property with pattern (#15625)
* add test for nullable property with pattern

* update samples
2023-05-24 15:13:53 +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
Tiffany Marrel
358397fe3f
[rust] fix use of isBasic condition (#15532) 2023-05-24 14:43:06 +08:00
Huan-Cheng Chang
1a483b2c9a
fix variable name (#15623)
Signed-off-by: Huan-Cheng Chang <changhc84@gmail.com>
2023-05-24 14:17:41 +08:00
Tiffany Marrel
f5903bc391
[swift5] fix use of isBasic condition (#15613) 2023-05-23 14:07:48 +01:00
William Cheng
833f649768
[Kotlin] minor enhancements, remove KotlinServerDeprecatedGenerator (#15608)
* better code foramt, add library creator

* remove kotlin server deprecated generator
2023-05-23 13:45:10 +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
Tiffany Marrel
216e2c45ff
[dart] fix use of isBasic condition (#15523) 2023-05-22 16:07:37 +08:00
martin-mfg
ad5cc827f0
remove fullJavaUtil (#15033) 2023-05-22 14:40:35 +08:00