Commit Graph

12297 Commits

Author SHA1 Message Date
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
devhl-labs 2af661d5b0 used default cancellation token (#15594) 2023-05-22 12:53:18 +08:00
Rustam 7881482161 [Ktor] Update generator to latest Ktor version #14061 (#14296) 2023-05-21 23:11:01 +08:00
William Cheng 5018d3c131 Update to JDK11 (#15553)
* update to jdk11, fix tests

* update workflow to use jdk11 instead

* update travis, circleci build

* fix test failure, update CI

* skip mvn install in appveyor

* add windows tests

* fix workflow

* remove log level

* add timeout

* sleep more

* skip tests

* sleep more

* only skip tests

* test with jdk11 only

* fix gradlew

* remove skip tests

* start server after build

* update gradle version

* more time to start server

* update to 420

* comment out build

* update

* update
2023-05-21 16:22:44 +08:00
William Cheng 6142315bef Revert "fix#14119 property generateApis=false not working (#14126)" (#15588)
This reverts commit be9f1b6e44.
2023-05-21 15:58:21 +08:00
Stefan Koppier 08bb0f42fe Fixed additional property omitGradleWrapper for kotlin generator (#15584) 2023-05-20 23:29:24 +08:00
Tiffany Marrel e7039f434e [cpp C++] fix use of isBasic condition (#15535) 2023-05-20 20:13:04 +08:00
Tiffany Marrel 89e4b24295 [Ada] [Java] fix Codegen copies (#15513)
* fix incomplete codegensecurity copies

* refactoring
2023-05-20 20:12: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
Tiffany Marrel 9d6f80a7cf [android] fix use of isBasic condition (#15528) 2023-05-20 20:08:18 +08:00
Tiffany Marrel b7546888d1 [eiffel] fix use of isBasic condition (#15533) 2023-05-20 20:07:48 +08:00
Tiffany Marrel 2d8ec8b008 [xojo] fix use of isBasic condition (#15526) 2023-05-20 20:06:57 +08:00
Tiffany Marrel 7443c95d48 [lua] fix use of isBasic condition (#15529) 2023-05-20 20:06:34 +08:00
Florian Morgan f0d439fbce [kotlin-spring] Fix inheritance compile error because of missing use-site target on annotation (#3596) (#15488) 2023-05-19 10:47:26 +01:00
William Cheng f5f382c87a Improve build time (#15566)
* remove java helidon client, server tests (covered in sample tests)

* add new workflow to test java helidon samples

* trigger build

* test jdk 17 only

* Revert "trigger build"

This reverts commit b9528a6588.
2023-05-19 09:45:43 +08:00
Stephan Strate 2250aae6a6 [kotlin-server] fix bean validation site targets (#14997) 2023-05-18 15:56:03 +01:00
William Cheng 1204662a64 undo changes to petstore.yaml 2023-05-18 16:09:40 +08:00
William Cheng 54c8bf8733 [go-server] Add tests for boolean query parameter (#15563)
* add tests for boolean query parameter

* fix test
2023-05-18 15:39:43 +08:00
Dmytro Vitiuk 08184086c0 fix typo in go-server codegen (#15557) 2023-05-18 15:18:22 +08:00
devhl-labs 4a5437968f added OrDefault method (#15551) 2023-05-18 11:22:44 +08:00
Jean-François Côté b7dc6ce598 [Aspnetcore] Fix nullable warnings part 1 (#15555)
* Fix nullable errors in attribute and filters

* Add missing samples
2023-05-18 11:14:55 +08:00
Tiffany Marrel c7d185dda9 [dart][dio] fix features of dart-dio generator (#15537) 2023-05-18 11:02:38 +08:00
Oleh Kurpiak d60b10826c [Gradle] add inputSpecRootDirectory for generate task (#15548) (fix #15483) 2023-05-17 09:58:08 +03: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