William Cheng
8c8f2f3521
fix javaodc in resttemplate oauth class ( #19918 )
2024-10-19 21:52:18 +08:00
William Cheng
695902cca1
update resttemplate dep to newer version ( #19917 )
2024-10-19 16:13:14 +08:00
Ryan Mustard
1248d7a103
[swift5] fix compile error from Alamofire 5.10 - cast Parameter type to avoid recursion ( #19908 )
...
* cast type to avoid unintended recursive call
* update samples
2024-10-18 15:58:14 +01:00
Bruno Coelho
c6dbf0870c
[swift5] add credentials by default ( #19906 )
2024-10-18 10:38:27 +01:00
Jonas Reichert
f6c0b4ad6b
[swift6] adjust RequestInterceptor to pass RequestBuilder instead of OpenapiClient ( #19904 )
...
* inject requestBuilder instead of openAPIClient
* adjust template
* run samples
* fix tests
* fix test
* w
* fix
2024-10-18 09:45:35 +01:00
Joscha Feth
dc3718cd5c
fix(typescript): typecheck generated samples + fixes ( #19903 )
...
* fix(typescript): typecheck generated samples + fixes
* wip(today's fortune): The sum of the Universe is zero.
* Update .github/workflows/samples-typescript-typecheck.yaml
* Update modules/openapi-generator/src/main/resources/typescript/tsconfig.mustache
* chore: regenerate samples
2024-10-18 09:57:43 +02:00
Joscha Feth
23bd50fea0
fix(typescript): missing override directives / satisfy noImplicitOverride ( #19896 )
...
* fix(typescript): missing `override` directives
* chore: regenerate samples
2024-10-17 15:43:21 +02:00
Bruno Coelho
38dac13c26
[swift6] add credentials by default ( #19885 )
2024-10-16 13:38:49 +01:00
Gregory Merlet
0a39a1760e
Add httpClient config to typescript-nestjs generator ( #19876 )
...
* feat: add httpClient to config
* chore: generate samples and doc
* refactor: change import to type
* chore: generate samples and doc
2024-10-16 13:32:05 +02:00
Bruno Coelho
ca032113f2
[Swift] shorter readme ( #19884 )
...
* [Swift] shorter readme
* [Swift] update docs
* [Swift] update docs
* [Swift] format codegen
* [Swift] try to make CI pass
2024-10-16 11:55:18 +01:00
Nicolas Vervelle
65b1859161
Add nullability annotations to Java generated clients ( #19617 )
...
* issue-1960: Add nullability annotations to Java generated clients
Motivations:
Have generated clients properly annotated for nullability to be able to check code using them with tools like NullAway
Modifications:
* Add nullable_var_annotations template to handle nullability annotation on vars
* Add pojo templates to use the nullability template
* Adapt tests
* issue-1960: Add nullability annotations to Java generated clients
Modifications:
* Run export_docs_generator.sh script to update samples
2024-10-16 16:14:29 +08:00
William Cheng
8f7d9f7467
update samples ( #19882 )
2024-10-16 15:55:57 +08:00
Jazzco
1214ad7492
Update HttpRequest.cpp.mustache - use stable 4-parameter connect ( #18893 )
...
* Update HttpRequest.cpp.mustache
Use stable 4-parameter connect
* add generated files
* Revert "add generated files"
This reverts commit 1d4e78aa0d .
* changed from 3- to 4-parameter connect for api-body for stable connection (see warning [clazy-connect-3arg-lambda])
* ran step 3 from Linux
* fixed missing braces and additional 3par issues
* add step 3 generated file
* activate trace for more info about link issue
* Update .github/workflows/samples-cpp-qt-client.yaml
Co-authored-by: Martin Delille <martin@delille.org >
* Update .github/workflows/samples-cpp-qt-client.yaml
Co-authored-by: Martin Delille <martin@delille.org >
* Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp
Co-authored-by: Martin Delille <martin@delille.org >
* Update modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache
Co-authored-by: Martin Delille <martin@delille.org >
* Update modules/openapi-generator/src/main/resources/cpp-qt-client/HttpRequest.cpp.mustache
Co-authored-by: Martin Delille <martin@delille.org >
* Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache
Co-authored-by: Martin Delille <martin@delille.org >
* Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache
Co-authored-by: Martin Delille <martin@delille.org >
* Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache
Co-authored-by: Martin Delille <martin@delille.org >
* Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp
Co-authored-by: Martin Delille <martin@delille.org >
* Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp
Co-authored-by: Martin Delille <martin@delille.org >
* Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp
Co-authored-by: Martin Delille <martin@delille.org >
* Update samples/client/petstore/cpp-qt/client/PFXPetApi.cpp
Co-authored-by: Martin Delille <martin@delille.org >
* rebuild examples
* Update modules/openapi-generator/src/main/resources/cpp-qt-client/api-body.mustache
Co-authored-by: Martin Delille <martin@delille.org >
* removed braces and updated examples
* rebuild samples
* remove false generated changes
---------
Co-authored-by: Martin Delille <martin@delille.org >
2024-10-16 00:08:40 +08:00
Bruno Coelho
2354d402a8
[swift6] promote to beta and improve documentation ( #19856 )
...
* [swift6] promote to beta
* [swift6] format code
* [swift] authentication docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
* [swift] update docs
2024-10-14 12:55:25 +01:00
Alec Petersen
b5b760a8a2
[csharp] Address obsolete build warnings in ApiClient ( #19847 )
...
* Stop using obsolete MaxTimeout
* Convert timeout to a timespan, rather than update the configuration object
* Use async overload of RestClientExtensions.Deserialize
* Update samples
* Fix typo
* Undo timeout change
2024-10-14 15:44:12 +08:00
Daniel Simon
8849156d29
Remove further Qt support before Qt 5.15.2 ( #19824 )
...
* Remove further Qt support before Qt 5.15.2
This is a follow-up pull request for [#19164 ] (https://github.com/OpenAPITools/openapi-generator/pull/19164 ), which removes the further handling of older Qt versions.
* Updates samples to match the mustach config files.
---------
Co-authored-by: Daniel Simon <mail@dlins.de >
2024-10-14 11:09:58 +08:00
William Cheng
2838b9584b
add logic in normalizer to auto fix self-reference schemas ( #19849 )
2024-10-12 16:39:48 +08:00
William Cheng
d1ca82cb8b
auto fix self-reference schemas
2024-10-12 16:12:23 +08:00
Bruno Coelho
462f450366
[kotlin] Map file and binary to ByteArray ( #19840 )
...
* [kotlin] Map file and binary to ByteArray
* [kotlin] Map file and binary to ByteArray
2024-10-11 08:59:16 +01:00
Bruno Coelho
185c0639c0
[swift6] simplify authentication ( #19839 )
2024-10-11 08:36:35 +01:00
Ben Meyrick
368b9b7e37
[TypeScript - Angular] Add syntax highlighting to code blocks and correct heading levels in README.mustache ( #19837 )
...
* Improve typescript-angular README.mustache
- Add syntax highlighting to code blocks
- Correct heading levels
* Add space between heading and convert bare url to angle brackets link
* Update samples
2024-10-10 17:57:16 +02:00
martin-mfg
b730e36937
[JAVA] fix several anyOf/oneOf problems ( #19817 )
...
* erasure duplicates
* sanitize beanValidation
* oneOf maps
* anyOf
* update samples
2024-10-10 14:50:18 +08:00
Norman Schimmrich
d14eab8446
[kotlin-client][jvm-spring-webclient] Extract data from PartConfig for multipart/form-data requests ( #19811 )
2024-10-10 13:41:55 +08:00
martin-mfg
d60200de38
improve java enums ( #19815 )
2024-10-09 10:46:17 +08:00
Alex Wallen
22b8c47b93
feat: add middleware for create actions ( #19793 )
...
* feat: add middleware for create actions
* chore: update samples
* chore: update typescript sample?
2024-10-09 10:38:22 +08:00
William Cheng
25b834131c
update k6 samples
2024-10-08 17:32:41 +08:00
William Cheng
e2c458b9ea
Prepare 7.10.0 ( #19809 )
...
* Revert "prepare 7.9.0 release (#19808 )"
This reverts commit 4145000dfe .
* prepare 7.10.0 snapshot
* update doc
* update samples
2024-10-08 11:21:54 +08:00
CaptainAye
a82475ed4e
Fix java rest client's ApiClient constructors to make sure objectMapper parameter is used in the client ( #19667 ) ( #19795 )
2024-10-08 09:47:16 +08:00
Kunitsyn Oleg
4ff8c3aaef
[Python][Client] Allow all content-types with text/ prefix ( #19802 )
...
* ODM-12108: allow all content-types with text/ prefix
* ODM-12108: Update deserialization tests
---------
Co-authored-by: Oleg Kunitsyn <you@example.com >
2024-10-08 09:34:36 +08:00
roelwuytens-androme
7d1e9997d0
[Kotlin] Allow other content-types when only interested in status-code / Unit ( #19801 )
...
* Allow Unit response
* Updating samples
* Improve comment for Unit shortcut
2024-10-07 13:18:51 +01:00
Bruno Coelho
9a0fc5900f
[swift6] urlsession interceptor ( #19797 )
...
* [swift6] alamofire interceptor
* [swift6] alamofire interceptor
* [swift6] urlsession interceptor
* [swift6] urlsession interceptor
* [swift6] urlsession interceptor
2024-10-07 12:16:18 +01:00
Bruno Coelho
4c81563708
Update PHP samples
2024-10-07 11:27:35 +01:00
kruegge82
5902af4e75
in case of defined status codes > 299 switch will have no effect. issue 7788 ( #19483 )
...
* in case of defined status codes > 299 switch will have no effect. As described in issue 7788
so we get only an error if statusCode is not defined AND not between 200 and 299
https://github.com/OpenAPITools/openapi-generator/issues/7788
* in case of defined status codes > 299 switch will have no effect. As described in issue 7788
so we get only an error if statusCode is not defined AND not between 200 and 299
https://github.com/OpenAPITools/openapi-generator/issues/7788
2024-10-07 16:01:36 +08:00
Bruno Coelho
39fb51062b
[swift6] alamofire interceptor ( #19796 )
...
* [swift6] alamofire interceptor
* [swift6] alamofire interceptor
2024-10-07 08:37:03 +01:00
Francesco Saverio
9163e00932
Implemented missing definitions of declared methods inside modelbase-header.mustache, added two missing body of methods definitions ( #19569 )
...
* Fix #19566 implemented the missing definition of declared methods inside openapi-generator/modules/openapi-generator/src/main/resources/cpp-rest-sdk-client/modelbase-header.mustache, have also be added two missing body of methods definitions
* Regenerated cpp-restsdk client samples
* Fixed shared_ptr creation
2024-10-07 14:06:06 +08:00
William Cheng
2f3f25dee2
update samples
2024-10-07 11:17:52 +08:00
devhl-labs
28ae69dafd
[windows] Fixed missing output ( #19715 )
...
* fixed missing output
* bug fix
* add new sample
* build samples again
* delete sample
* move the sample and add to github workflow
* remove model not needed for this test
* handle specs with no models
2024-10-07 10:58:05 +08:00
Alec Petersen
c7d9857c8d
[csharp] Output DateOnly paramater in the correct default format ( #19728 ) ( #19729 )
...
* Output DateOnly in the correct default format
* Only add conditional if we are net60 or later
* Update samples
2024-10-07 10:48:50 +08:00
devhl-labs
fce8bb9604
support formatting date only ( #19785 )
2024-10-07 10:23:00 +08:00
William Cheng
c8fad42324
update samples
2024-10-07 08:53:30 +08:00
Joscha Feth
2f73582d82
fix(core): single value enums (const) are not generated correctly in 3.1 specs ( #19696 )
...
* fix(core): single value enums (`const`) are not generated correctly in `3.1` specs
* fix: const enums
* chore: update samples
* chore: update samples
2024-10-06 23:16:48 +08:00
Jenny G. L.
9791e6f537
[Scala][Client]Add Http4s scala3 client codegen ( #19658 )
...
* fix attemp
* use java.time.Instant
* fix client gen
* Tweeks
* header and form
* use scala 3 enum
* more tweeks
* add additional properties; add auth
* add form media type
* add modelsOnly
* add unit tests
* add petstore samples
* add doc
* add new samle to .github/workflows/samples-scala.yaml
* update build.sbt template
* simply the baseclient
* add None to optional field
* tweek auth model and format
---------
Co-authored-by: Jenny Leahy <jennyleahy@JENNYLEAHY.localdomain >
2024-10-05 17:00:19 +08:00
Viacheslav Pivovarov
e5dee54797
[R][client] Make enum parameters with required: false optional to request arguments ( #19654 )
...
* ODM-11697: Adding null check in R-api
* bin/generate-samples.sh executed
---------
Co-authored-by: Kunitsyn Oleg <114428801+genestack-okunitsyn@users.noreply.github.com >
2024-10-05 15:12:30 +08:00
William Cheng
77eb192414
update php samples
2024-10-05 15:02:54 +08:00
Imants Horsts
5e7cf1cfdd
By default should use static configuration class instance, otherwise new instance is created every time ( #19775 )
2024-10-05 14:57:08 +08:00
Bruno Coelho
8e10dd7be7
[swift6] add samples that test upload files as data ( #19780 )
...
* [swift6] upload files as data
* [swift6] upload files as data
* [swift6] upload files as data
* [swift6] upload files as data
* [swift6] upload files as data
* [swift6] upload files as data
2024-10-04 15:52:48 +01:00
Bruno Coelho
66cde8b5f4
[swift6] make async await the default response library ( #19776 )
...
* [swift6] make async await the default response library
* [swift6] make async await the default response library
* [swift6] make async await the default response library
2024-10-04 08:05:05 +01:00
Pascal Bachor
817da39124
[Python] Restore required dev dependency + Adjust generated Github workflow ( #19773 )
...
* Restore required python client dev dependency pytest-cov
* Harmonize python client workflow definitions
---------
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com >
2024-10-04 00:39:45 +08:00
Beppe Catanese
67942aa478
[Typescript-Node] Mark deprecated endpoints ( #19770 )
...
* Add @deprecated tag for deprecated operations
* Add test helper to verify a given line
* Add test to verify deprecated method
* Regenerate samples
* Delete tmp files after test
* Remove assertFileContains on specific line
* Update modules/openapi-generator/src/main/resources/typescript-node/api-single.mustache
Co-authored-by: Joscha Feth <joscha@feth.com >
* Correct indentation
* Regenerate samples
---------
Co-authored-by: Joscha Feth <joscha@feth.com >
2024-10-03 17:45:04 +02:00
Bruno Coelho
06d914dd0f
[swift6] useSPMFileStructure by default ( #19772 )
...
* [swift6] useSPMFileStructure by default
* [swift6] useSPMFileStructure by default
* [swift6] useSPMFileStructure by default
2024-10-03 16:23:43 +01:00