Sondre Eikanger Kvalø
c7e9bd2f29
[Kotlin][Server] Skip new post processing routine for kotlin server jaxrs ( #18180 )
...
* Skip post processing when generating JAXRS spec with Kotlin
This feature was previously added to work with the javalin5 library
* Add sample that proves what we expect after fixing this
* Update sample
* Added new samples to samples workflow
* Revert from jdk17 pipeline
2024-03-21 15:55:28 +08:00
William Cheng
669651fcb2
trigger workflow when theres change to postman.json ( #18129 )
2024-03-18 13:01:15 +08:00
dependabot[bot]
e41dc1e81b
Bump swift-actions/setup-swift from 1 to 2 ( #18087 )
...
Bumps [swift-actions/setup-swift](https://github.com/swift-actions/setup-swift ) from 1 to 2.
- [Release notes](https://github.com/swift-actions/setup-swift/releases )
- [Commits](https://github.com/swift-actions/setup-swift/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: swift-actions/setup-swift
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-13 13:21:50 +08:00
William Cheng
7f1e79f7d2
[C] Optimize memory usage when printing JSON ( #18072 )
...
* cJSON generate unformatted json to save memory during large objects handling
* update sample
* add option to use cjson print unforamtted in client
* remove unused test template files
* add new samples
* update workflow
* update doc
* fix model filename
* fix inclulde
---------
Co-authored-by: Hemant Zope <42613258+zhemant@users.noreply.github.com>
Co-authored-by: Hemant Zope <hemantzope2008@gmail.com>
2024-03-11 16:18:08 +08:00
Ira Chan
62d0e3abdb
[kotlin-spring] fix BigDecimal default value failed to compile ( #17956 )
2024-03-08 12:56:16 +00:00
William Cheng
d4e10508cd
[C#] fix anyof, oneof mixed primitive object parse error ( #17986 )
...
* Update csharp oneOf and anyOf mustache templates to accept primitive, object, and array types when deserializing
Add bug openapi spec
Remove generated files
Add test endpoints
Generate base on spec
Remove issue spec as it is moved into sample test spec
Add back in number and int
Round trip anyOf/oneOf serialization tests
Generate classes with int/num types
Do through converter instead of object ctor
Regen models
Use convert methods
Regen models
Test data
Add enum
Remove enums
Regenned models
* update sha256
* use new spec
* skip tests
* update workflow
* fix
---------
Co-authored-by: Ruben Aguilar <ruben.aguilar@forgeglobal.com>
2024-02-29 16:05:08 +08:00
Anakael
1fbf7220ec
[CS] refactor: update github actions ( #17666 )
...
* feat: DateOnly for client
* fix: generated doc for csharp
* doc: fix generators README for csharp
* add DateOnly option for aspnet
* refactor: update csharp docs
* refactor: fix typo
* finish
* finish
* finish
* regenerate
* rebuild and regenerate
* fix build error
* finish
* revert path
* regenerate
* remove exceed samples
* regenerate
* add DateOnly to nullable
* remove obsolete file from list
* update test files list
* remove obsolete sample build
* revert manual tests
* revert samples to master and regenerate
* remove new samples
* remove eol
* remove eol
* add new specs
* try fix test
* update tests
* update files
* remove eol
* revert
* remove eol
* regenerate
* add net6+ support to aspnetcore
* add jobs
* update actions
* regenerate
* delete exceed file
* remove rexeg
2024-02-28 15:56:48 +08:00
Stefan Koppier
2a4e60ccbb
[Kotlin] Fix default values ( #17937 )
...
* Fixed invalid extraction of response body in kotlin-client jvm-spring-*
* Generated echo-api for kotlin-jvm-spring-3-restclient
* Specific echo-api for Kotlin without allOf/anyOf
* Specific echo-api for Kotlin without allOf/anyOf
* Generated all samples
* Added kotlin-jvm-spring-3-restclient sample to workflow
* Fixed syntax problem
* [kotlin] Fixed multiple problems with default values
* [kotlin] Removed old commented code
* [kotlin] Generated new samples after merge with master
* [kotlin] ensure-up-to-date
2024-02-28 11:20:27 +08:00
Mehmet Fatih Ercik
48565ae5be
Generate API files as interfaces for go-gin server ( #17784 )
...
* add feature to generate only interface files
* generate sample
* add workflow file foe go gin service
* add workflow file foe go gin service
* add workflow file foe go gin service
* update samples
2024-02-20 15:37:44 +08:00
William Cheng
28b75377b5
Add EchoServerResponseParser.kt to Kotlin Echo API client ( #17887 )
...
* add kotlin jvm retrofit2 coroutine echo client
* add tests for echo server parser
* add workflow
* remove coroutines sample
2024-02-19 10:52:58 +08:00
William Cheng
7d539bcb78
Remove deprecated library (jvm-okhttp3) in kotlin client generator ( #17884 )
...
* remove deprecated library in kotlin client generator
* update workflow
2024-02-18 17:16:23 +08:00
William Cheng
4810dd52c3
[python-fastapi] auto generate impl folder ( #17852 )
...
* auto generate impl folder
* fix working dir
* install pytest
* add new file
* update, fix
* test with py 3.9
* fix tests
* update doc
2024-02-15 13:08:04 +08:00
dependabot[bot]
f3d5ea2f54
Bump s4u/setup-maven-action from 1.11.0 to 1.12.0 ( #17849 )
...
Bumps [s4u/setup-maven-action](https://github.com/s4u/setup-maven-action ) from 1.11.0 to 1.12.0.
- [Release notes](https://github.com/s4u/setup-maven-action/releases )
- [Commits](https://github.com/s4u/setup-maven-action/compare/v1.11.0...v1.12.0 )
---
updated-dependencies:
- dependency-name: s4u/setup-maven-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-13 12:55:10 +08:00
William Cheng
cd18299bb8
Fix TS Axios echo client github workflow ( #17815 )
...
* test fix
* test fix
2024-02-08 11:03:59 +08:00
William Cheng
4d3121c32e
remove sonar workflow which works with jdk17+ only
2024-01-31 11:46:15 +08:00
dabdirb
66a6af5ca4
add lombok model support on spring ( #17622 )
...
* add lombok model support on spring
* use regex to adapt annotation with parenthesis
* add ut case
* add samples
* add samples
* fix github workflow
* fix github workflow
2024-01-27 10:45:44 +08:00
dependabot[bot]
aa15ef9ab9
Bump eskatos/gradle-command-action from 2 to 3 ( #17719 )
...
Bumps [eskatos/gradle-command-action](https://github.com/eskatos/gradle-command-action ) from 2 to 3.
- [Release notes](https://github.com/eskatos/gradle-command-action/releases )
- [Commits](https://github.com/eskatos/gradle-command-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: eskatos/gradle-command-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-27 10:02:40 +08:00
dependabot[bot]
ad73e115d9
Bump gradle/gradle-build-action from 2 to 3 ( #17720 )
...
Bumps [gradle/gradle-build-action](https://github.com/gradle/gradle-build-action ) from 2 to 3.
- [Release notes](https://github.com/gradle/gradle-build-action/releases )
- [Commits](https://github.com/gradle/gradle-build-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: gradle/gradle-build-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-27 10:02:18 +08:00
Stefan Koppier
227c8602f7
[kotlin-client][jvm-spring-*] Fix runtime error in endpoints of type Unit ( #17664 )
...
* Fixed invalid extraction of response body in kotlin-client jvm-spring-*
* Generated echo-api for kotlin-jvm-spring-3-restclient
* Specific echo-api for Kotlin without allOf/anyOf
* Specific echo-api for Kotlin without allOf/anyOf
* Generated all samples
* Added kotlin-jvm-spring-3-restclient sample to workflow
* Fixed syntax problem
2024-01-22 10:57:40 +08:00
William Cheng
d810d7c534
R echo client tests ( #17629 )
...
* add r echo api client sample
* add r workflow
* fix
* add env
* set r version
* install curl
* install dep
* fix
* comment out installation
2024-01-18 09:05:35 +08:00
dependabot[bot]
eab34c9b3f
Bump actions/cache from 3 to 4 ( #17636 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases )
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md )
- [Commits](https://github.com/actions/cache/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 08:59:37 +08:00
Alexis Couvreur
092463a513
feat: add java-wiremock
generator ( #17614 )
...
* feat: add `java-wiremock` generator
* remove text block usage for samples
this will allow more version of jav to be compatible with this
* fix extra parenthesis
* Add java-wiremock workflow
2024-01-16 11:40:13 +08:00
Robert Schweizer
a0418c2855
[python][client] Clean up samples and CI ( #17509 )
...
* chore: Remove leftover Github action file
This was probably added by mistake. A similar file is active in
.github/workflows/samples-python-pydantic-v1-petstore.yaml.
* chore: Remove leftover VERSION from old python-experimental sample
* ci: Stop running Python integration tests in Circle CI
These Python clients are all tested with Github Actions already, which
is faster, more cleanly separated and only runs on modifications.
I'm not cleaning up the pydantic-v1 client, I expect it to be removed soon anyway.
* chore: Remove true from sample folder name
python-disallowAdditionalPropertiesIfNotPresent-true
-> python-disallowAdditionalPropertiesIfNotPresent
2024-01-16 10:34:04 +08:00
Dennis Ameling
13edc5d494
kotlin-server: Add support for Javalin ( #17596 )
...
* kotlin-server: Add support for Javalin
* kotlin-server: Add Javalin generated sample code
* Add output from build scripts
* Address MR feedback
* Update CI to include new Javalin sample
2024-01-15 20:22:20 +08:00
mikkka
455add6d80
Implement scala http4s server generator ( #17430 )
...
* Implement scala http4s server generator
* Fix types and auth
* Add proper handling of various responses
* Fix configs
* Drop null values in json encoder
* Add sample files
---------
Co-authored-by: m.tkachev <m.tkachev@tinkoff.ru>
2024-01-10 11:40:31 +08:00
Anakael
11caad92df
[CSharp] feat!: add useDateOnly flag ( #17471 )
...
* feat: DateOnly for client
* fix: generated doc for csharp
* doc: fix generators README for csharp
* add DateOnly option for aspnet
* refactor: update csharp docs
* refactor: fix typo
* finish
* finish
* finish
* regenerate
* rebuild and regenerate
* fix build error
* finish
* revert path
* regenerate
* remove exceed samples
* regenerate
* add DateOnly to nullable
* remove obsolete file from list
* update test files list
* remove obsolete sample build
* revert manual tests
* revert samples to master and regenerate
* remove new samples
* remove eol
* remove eol
* add new specs
* try fix test
* update tests
* update files
* remove eol
* revert
* remove eol
* regenerate
* add net6+ support to aspnetcore
* add jobs
2024-01-10 11:34:14 +08:00
Rugal Bernstein
1e0e8fe0eb
Add ability to append ServerHttpRequest for kotlin-spring generator ( #17158 )
...
* Add ability to append ServerHttpRequest for kotlin-spring generator
* Add generated doc & sample
2024-01-10 11:11:23 +08:00
Linh Tran Tuan
9827098057
[Rust] [Server] New generator bases on Axum ( #17549 )
...
* Rust Server - Axum based (#5 )
* Fix typo
* Address comment
* Address comment
2024-01-09 11:38:54 +08:00
Jonathan Ballet
22a0fc1727
python: adjust basic typing information ( #17511 )
...
* python: adjust basic typing information
This is an initial pass to fix and adjust the typing information for the
generated client. This is enough to have mypy runnning without complains
on all the (modern) generated clients (Pydantic v1 code is not checked
for instance)
mypy is also now run directly in the CI, so further changes will also be
checked and thus, will need to be compliant with good typing
information.
Note that this doesn't *fully* type all the code: mypy is not run in
"strict" mode and there are still many functions/methods/attributes
which are still not fully typed, but it's a first good step in that
direction.
* ApiResponse's raw_data can't be None
* Fix indentation
* Revert test changes
* run mypy on tests/ directory
* don't forcefully convert the client response headers to dict
* override petstore ApiResponse model
* adjust type of 'any/one_of_schemas' fields
2024-01-06 15:40:42 +08:00
Martin Delille
cb84dffb2a
[cpp-qt-client] Add cpp-qt-client technical committee to CODEOWNERS ( #17481 )
2024-01-03 10:22:09 +08:00
William Cheng
c215bc681d
better java resteasy echo api client tests ( #17473 )
2023-12-26 10:25:55 +08:00
Mickael Magniez
38c33b92fe
Add scala-pekko client generator ( #17417 )
...
* feat: add scala-pekko client generator
* feat: add scala-pekko client to CI
2023-12-22 10:58:27 +08:00
Yonatan Karp-Rudin
5435b44e40
Fix missing convertor for jackson in retrofit ( #17418 )
...
* Add missing Jackson converter for Retrofit
This commit adds the missing configuration for a ApiClient so all Jackson serializations will start to work correctly.
* Add sample project code for Retrofit Jackson
2023-12-19 10:29:50 +08:00
Beppe Catanese
58345a9a80
[POSTMAN] Add Samples GitHub workflow ( #17412 )
...
* Add Python tests
* Add workflow to verify Postman samples
* Correct path
2023-12-18 10:52:59 +08:00
dependabot[bot]
bc2443ecb0
Bump actions/download-artifact from 3 to 4 ( #17400 )
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 08:59:24 +08:00
dependabot[bot]
c49701b804
Bump actions/upload-artifact from 3 to 4 ( #17401 )
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 08:59:09 +08:00
Stefan Koppier
7f05c1f41d
[kotlin-client] New generator: kotlin-jvm-spring-restclient ( #17366 )
...
* Created kotlin jvm spring restclient
* Fixed kotlin jvm-spring-restclient
* Fixed earlier problems
* Fixed earlier problems
* Updated kotlin.md
2023-12-11 12:49:36 +08:00
William Cheng
10da7a3c5a
[Ruby] add file download tests ( #17362 )
...
* add new ruby echo api clients
* add tests for ruby faraday file download
* add file download test to ruby Typhoeus
* add ruby workflow, add tests for ruby httpx
* update
* fix
2023-12-09 22:05:27 +08:00
dependabot[bot]
1b2917d69f
Bump actions/setup-python from 4 to 5 ( #17338 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 11:28:14 +08:00
dependabot[bot]
f593adff18
Bump actions/setup-go from 4 to 5 ( #17337 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-07 11:28:01 +08:00
dependabot[bot]
d9b795171a
Bump actions/setup-dotnet from 3.2.0 to 4.0.0 ( #17312 )
...
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet ) from 3.2.0 to 4.0.0.
- [Release notes](https://github.com/actions/setup-dotnet/releases )
- [Commits](https://github.com/actions/setup-dotnet/compare/v3.2.0...v4.0.0 )
---
updated-dependencies:
- dependency-name: actions/setup-dotnet
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-05 15:25:54 +08:00
Martin Delille
95340d5264
[cpp-qt-client] pass QString by const reference instead of by value ( #16793 )
...
* [cpp-qt-client] pass QString by const reference instead of by value
* Add another signal instead of changing its signature
* Bump qt version
* Fix CODEOWNERS
* Try to fix workflow
* use v3
* Remove openssl from windows build
---------
Co-authored-by: William Cheng <wing328hk@gmail.com>
2023-12-03 18:14:22 +08:00
dependabot[bot]
77127ecf65
Bump actions/setup-java from 3 to 4 ( #17252 )
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](https://github.com/actions/setup-java/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-30 13:50:10 +08:00
dependabot[bot]
7c551e65dd
Bump s4u/setup-maven-action from 1.10.0 to 1.11.0 ( #17175 )
...
Bumps [s4u/setup-maven-action](https://github.com/s4u/setup-maven-action ) from 1.10.0 to 1.11.0.
- [Release notes](https://github.com/s4u/setup-maven-action/releases )
- [Commits](https://github.com/s4u/setup-maven-action/compare/v1.10.0...v1.11.0 )
---
updated-dependencies:
- dependency-name: s4u/setup-maven-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-24 12:54:35 +08:00
William Cheng
aaed846f5f
Update Dockerfile (cli, online) to use eclipse-temurin:17.0.3_7-jre-focal ( #17139 )
...
* add tests for openapi-generator-cli dockerfile
* trigger workflow
* add cp
* restore
* use eclipse-temurin:17.0.3_7-jre-focal
* update dockerfile
* update image to newer version
2023-11-23 11:08:31 +08:00
Csaba Kozák
ab0b44a1c4
[kotlin-client] add support for kotlinx-datetime ( #17166 )
...
Closes #14490
2023-11-22 17:52:37 +00:00
Vignesh
87b86c78dc
feat: Support useSingleRequestParameter feature for java microprofile client generation ( #17072 )
2023-11-21 11:56:11 +08:00
William Cheng
186fde250b
[spring-cloud] add http basic test ( #17135 )
...
* update samples
* add tests for spring cloud http basic
* fix path
* update samples
2023-11-19 16:07:28 +08:00
Aurélien Joga
1f5b590d5a
Python-server workflow fixes + pytest ( #17060 )
...
* Fix referenced path for tests
* Explicit dependencies
Flask 2.3 has breaking changes
* Marks all async tests with pytest.mark.asyncio
Otherwise they are skipped by pytest and coverage is zero
* Fix path for pytest
On suggestion from https://github.com/OpenAPITools/openapi-generator/pull/17060#discussion_r1392666369
2023-11-18 10:10:10 +08:00
William Cheng
07620cebe2
update webclient dep to newer version, add tests ( #17106 )
2023-11-17 10:34:22 +08:00