1718 Commits

Author SHA1 Message Date
martin-mfg
20692aa891
Properly handle mappings and import mappings after processOpts (#16216)
* make Java imports overridable

* fix for other dateLibraries

* complete core fix

* adapt test - step 1/2

* add unit test

* adapt test - step 2/2

* remove accidentally added file

* final small clean-up
2023-08-30 13:48:51 +08:00
William Cheng
8386a6eaaf
[java] improve petstore tests with openapi v3 spec (#16447)
* regenerate tests in jersey2-java8 client

* update samples

* fix java google api client tests

* update java resteasy to use v3 spec for tests

* update java vertx to test with v3 spec

* update java resttemplate to test with v3 spec

* add new files

* regenerate jersey1 tests
2023-08-30 12:33:01 +08:00
William Cheng
91fc151451
Add mapping features to Julia generators (#16370)
* add mapping features to julia generators

* additional changes required for mapped names (#16383)

---------

Co-authored-by: Tanmay Mohapatra <tanmaykm@gmail.com>
2023-08-24 10:09:54 +08:00
William Cheng
9c9c45a73e
add mapping features to c client generator (#16371) 2023-08-22 14:58:41 +08:00
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
William Cheng
f1bacd23e7
remove python flask py2 samples (#16319) 2023-08-14 13:34:25 +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
Théophane Charbonnier
057bc8e626
[Java][Client] Microprofile Jackson serialization (#15940) 2023-08-12 12:15:59 +08:00
William Cheng
36cb3ce6b9
add tests, workflow for haskell samples (#16290) 2023-08-10 10:42:57 +08:00
William Cheng
a9cfa1f391
[kotlin-spring] minor bug fixes (#16270)
* kotlin-spring: minor bug fixes

* comment out tests
2023-08-08 10:05:34 +08:00
William Cheng
50ee574d1f
[kotlin] Escape dollar sign in baseName (#16266)
* escape dollar sign in baseName (kotlin)

* escape dollar sign in kotlin server jaxrs-spec template

* add new files

* update samples
2023-08-08 10:05:15 +08:00
Ween Jiann
2b44d4ed93
[go-server] Partially reverts and fix #15185 (#16258)
* Partitally reverts #15185

* Remove unused import

* Set zero value if param is empty

* Refactor samples, add test config

* Add tests

* Clean up

* Fix test
2023-08-07 20:43:30 +08:00
martin-mfg
6a3f0ffb37
[spring] fix void return type for useResponseEntity: false (#16230)
* fix return type

* add new sample config as test for the fix

* update samples
2023-08-07 14:53:05 +08:00
William Cheng
9322c2fc29
fix default value, add nullable support (#16265) 2023-08-06 20:08:22 +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
Ken Kaizu
c080660cc1
[Scala] scala-akka-http-server support pekko-http using useApachePekko flag (#16255)
* introduce useApachePekko flag into scala-akka-http-server

* useApachePekko flag in scala-akka-http-server templates

* introduce scala-pekko-http-server samples
2023-08-05 13:32:02 +08:00
William Cheng
82516c75d2
Fix implements in oneof, anyof templates in java okhttp client generator (#16241)
* fix implements in oneof, anyof templates in java okhttp

* add tests

* update samples
2023-08-03 21:09:00 +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
Antti Leppä
c6a100cce2
Added support for using mutiny instead of coroutines for asynchronous kotlin server APIs (#15262) 2023-07-31 09:50:44 +08:00
William Cheng
bf181906e0
[Swift] property, parameter name mapping support (#16207)
* add property, parameter naming support to swift5 generator

* revert change

* remove files

* update samples
2023-07-30 22:44:19 +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
William Cheng
7ca84e5c88
Add name, parameter name mapping to abstract go codegen (#16171)
* add name, parameter name mapping to abstract go codegen

* better code format
2023-07-28 09:57:23 +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
Tom Milligan
f32be9df0b
rust: fix rust generation of optional additionalProperties in openapi 3.1.0 (#16143)
* rust: add regression test for 16119

* rust: fix rust generation of optional additionalProperties in openapi 3.1.0

* [review] fix gha sample path
2023-07-25 19:39:26 +08:00
Alexey Makhrov
24656156ed
[typescript-angular] Add samples with composed schemas (#16156)
* Setup typescript-angular samples for various composed schemas

* generate samples

* restructure and regenerate samples

* add compilation tests

* update FILES in samples

* debug commit - verify that compilation will fail in CI

* revert debug commit

* remove unnecessary dependencies
2023-07-25 10:53:38 +02:00
William Cheng
0a02860b50
add parameter name mapping (#16160) 2023-07-24 15:54:40 +08:00
Tanmay Mohapatra
c71b48fe1a
[Julia] update samples test and a minor fix (#16152)
* [Julia] update samples test and a minor fix

- updating samples test for Julia generated code to use the latest OpenAPI.jl Julia package, which includes tests for file uploads
- also including a fix where generated code duplicated the `mandatory` flag in one of the method calls

* add blank line, trigger build with julia workflow

* more updates to julia samples tests

* add samples changes
2023-07-24 10:52:17 +08:00
William Cheng
ddc2b3e560
Add tests for oneOf models in ruby client (#16137)
* add test for oneOf model in ruby

* add new files

* add tests for oneOf model without discriminator
2023-07-20 17:35:40 +08:00
William Cheng
7dee666826
add python name mapping support (#16120) 2023-07-20 17:30:01 +08:00
William Cheng
6983a3acf3
Add nameMapping option to Java client, server generators (#16103)
* add nameMapping to java codegen

* update doc

* update samples

* fix typo

* update toParamName
2023-07-17 11:37:49 +08:00
William Cheng
598c27ddb0
[C#] fix validate (#16097)
* fix validation with discriminator using parent instead

* add new files

* add new workflow

* fix
2023-07-16 10:24:47 +08:00
Tanmay Mohapatra
6a263565e7
[Julia] add Julia tests to GitHub workflow (#16089)
* [Julia] add Julia tests to GitHub workflow

Added Julia client and server tests to GitHub workflow

* fix paths
2023-07-14 00:19:56 +08:00
William Cheng
aa1e9097ea
Minor improvements to Zapier client generator (#16044)
* improve Zapier client generator

* log debug instead of error
2023-07-10 15:37:20 +08:00
Emanuele Saccomandi
9baf4988f3
Zapier generator (#15997)
* First version of Zapier Generator

* fixed zapier codegen

* added zapier templates

* added zapier sample

* added zapier doc

* added zapier generator form data management

* added samples generation

* updated docs

* fixed zapier api template

* fixed zapier samples export

* added zapier readme template

* fixed zapier readme template

* added petstore readme

* cleaned zapier generator

* updated samples

* fixed zapier enum label

* cleaned code

* updated samples

* improved zapier search actions

* updated samples

---------

Co-authored-by: Mauro Valota <maurovalota@fattureincloud.it>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-07-09 21:52:04 +08:00
Dennis Melzer
50d8e7820b
Fix cli options use tags and api name suffix (#15936)
* Fix cli options use tags and api name suffix

* Add sample code generator for api suffix and tags

* Fix FILES

* trigger build

* Add sample to github workflow
2023-07-02 23:18:17 +08:00
devhl-labs
48f242fe58
[csharp] Rename csharp config files (#15968)
* renamed config files

* changed default framework to latest

* renamed files using standard

* ensure the default is actually latest
2023-07-02 10:30:16 +08:00
devhl-labs
780d1fb3e2
use latest framework as default (#15969) 2023-07-02 10:06:37 +08:00
Vladimir Svoboda
71528f69e8
Add support for Angular 16 (#15925)
* Add support for Angular 16

* Fix dependencies specifications

* Fix minimum angular supported version in readme

* Update integration tests

Even if they are currently not run.

* Update sample due to rebase
2023-07-01 13:13:58 +02:00
Dennis Melzer
d6538e3327
Fix import for spring boot 3 (#15949)
* Fix import for spring boot 3 and add a test for optional generation

* Remove timestamp

* Add sample to github workflow
2023-07-01 14:31:44 +08:00
William Cheng
fac04cfa9d
Various improvements to scala-sttp4 generator (#15931)
* various improvements to scala-sttp4 generator

* test scala with jdk11

* test sttp4 in circleci

* add pom.xml

* update

* update tc
2023-06-27 23:27:38 +08:00
Adam Rybicki
faa5da51e5
Sttp4 generator (#15834)
* implementation of sttp4 generator

* rebased with master

* running scripts

---------

Co-authored-by: Adam Fish Rybicki <adamrybicki@adams-macbook-pro.home>
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-06-27 10:50:52 +08:00